From patchwork Wed Feb 15 17:45:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 94033 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2136904qgi; Wed, 15 Feb 2017 09:48:29 -0800 (PST) X-Received: by 10.99.158.69 with SMTP id r5mr1210280pgo.153.1487180909784; Wed, 15 Feb 2017 09:48:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6si4388136pfg.110.2017.02.15.09.48.29; Wed, 15 Feb 2017 09:48:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbdBORsU (ORCPT + 6 others); Wed, 15 Feb 2017 12:48:20 -0500 Received: from mail-lf0-f46.google.com ([209.85.215.46]:33494 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456AbdBORpN (ORCPT ); Wed, 15 Feb 2017 12:45:13 -0500 Received: by mail-lf0-f46.google.com with SMTP id x1so84639709lff.0 for ; Wed, 15 Feb 2017 09:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=POAHLwbaGjwgix0tme8ejWTOB9dSCxajsB7ZEZXnyb4=; b=Hm4LALW5tV18wfY2qVBuGEoNcdQsVlWEDLcKIBWPHk2MR4vfKzpsVGzUeEgynACdGE eJXg1Y6azDX6p7VPjSnVLcpuePr7kclikhhmRLTGat8Iqh0BPeT+3L/MOEkUkg60LjeI R+zny55jikNGhngtq4+cm2A1Yhu2X0NdTqAwg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=POAHLwbaGjwgix0tme8ejWTOB9dSCxajsB7ZEZXnyb4=; b=Swu3k9tjdYheMfTt7SHNYdN40mCeqfhZIkf0OT/sPpFkTTDaCis3ywEXRc0yn+ZCUO P0pNRqOUUbpBIyOop8f9fZCcGoFKKlEQF9N1/iLhhVScUXMsD3lT2fcbCMwM2qT8l+wp zRj82rcx+hu/PCyjC4/+GqYpiahtWK08hXMkwyLTtJLkpyM6YDle+U/aQLuexcT6cvZs Jx7EwUxAL5RePnUyclFgcj2yApomOtbTnZ4kaHTrX6k0ssUkuhKhGHLxGztxKrg40Szu suTH6ZmRw5H0/GX5UOhvwdOAyJ28g4nVanWiZpnhEI3d87BV3mZIki5Osrd+S8xZIigH STYQ== X-Gm-Message-State: AMke39lK16OUTBjzlV0F5XLG3hgHNjOw/UhetdOgiIYoBLD0M0z21wSCY1zHXLnD7IeZqsPK X-Received: by 10.25.67.84 with SMTP id m20mr12440022lfj.106.1487180706621; Wed, 15 Feb 2017 09:45:06 -0800 (PST) Received: from localhost.localdomain (183-224-132-95.pool.ukrtel.net. [95.132.224.183]) by smtp.gmail.com with ESMTPSA id p11sm1110307lfd.20.2017.02.15.09.45.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Feb 2017 09:45:05 -0800 (PST) From: Ivan Khoronzhuk To: mugunthanvnm@ti.com Cc: grygorii.strashko@ti.com, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: cpsw: correct ale dev to cpsw Date: Wed, 15 Feb 2017 19:45:02 +0200 Message-Id: <1487180702-19944-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The ale is a property of cpsw, so change dev to cpsw->dev, aka pdev->dev, to be consistent. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index e86f226..57c8308 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -3032,7 +3032,7 @@ static int cpsw_probe(struct platform_device *pdev) goto clean_dma_ret; } - ale_params.dev = &ndev->dev; + ale_params.dev = &pdev->dev; ale_params.ale_ageout = ale_ageout; ale_params.ale_entries = data->ale_entries; ale_params.ale_ports = data->slaves;