Message ID | 20180314133732.24068-3-madalin.bucur@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35A68601E9 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 13:40:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A25228998 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 13:40:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17C7D28987; Wed, 14 Mar 2018 13:40:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 77F07289AB for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 13:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TWwiLSFfWr+cXWybZ49UYiQmeIMRIzkRH3ok7+bU12Y=; b=K7TU0+icfIA/cx VB8GmumTzfe3ELcLCDdg/Lgta0NfP03jhZQByjkY45ZhcaEuTBLtsH+DxW413SzlVFbeqY4eShD3V 4cKE6PZFiwKmoB3fZHbBg2neD9msURqyvG160e5vn4OMoH7oG2dd1CUbBag2IN0L8zUmBRoqYrdYP I0yHNIwEYfXOa4u01uBeNL69QWVtItFo4GuV0yFqfe7IFASXC27Pmaz83z8+Mj7Y8llvq+ObqS6+8 oFfEQVmzW8GXfllchuVZtm+smOfr0d/ceKr1S9NQgbnGH19gYRWBzLKwUhf2slAda+CJkoholL0zB JOVicBZSgitUmpq8S9eg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew6dq-0007pj-L4; Wed, 14 Mar 2018 13:40:30 +0000 Received: from mail-eopbgr10084.outbound.protection.outlook.com ([40.107.1.84] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew6c1-0005it-Uk for linux-arm-kernel@lists.infradead.org; Wed, 14 Mar 2018 13:38:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nwvF1S3GxqMJ4l6VpRMPvAyAM6G1KRqxy9u3PfDMyR0=; b=K4c0bC8N9xt1lvOdbAlIxA1MbMZNMHJJtHCFLM63d/DKyGzie+wsPYiEPPFsAwqkpLvqMiwg3RuHrr20CGGc5hgFFIkqH5M7R8u1KoVN/Qjpk4ymBXk0dQf/7OqZ5YhVG1czg3kEjjthpzyinkm1kNHbf2B76+J0bCPoDwdSdpU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=madalin.bucur@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.49) by AM5PR04MB3267.eurprd04.prod.outlook.com (2603:10a6:206:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Wed, 14 Mar 2018 13:38:27 +0000 From: Madalin Bucur <madalin.bucur@nxp.com> To: davem@davemloft.net Subject: [PATCH 2/5] dpaa_eth: fix error in dpaa_remove() Date: Wed, 14 Mar 2018 08:37:29 -0500 Message-Id: <20180314133732.24068-3-madalin.bucur@nxp.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180314133732.24068-1-madalin.bucur@nxp.com> References: <20180314133732.24068-1-madalin.bucur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: SN4PR0601CA0024.namprd06.prod.outlook.com (2603:10b6:803:2f::34) To AM5PR04MB3267.eurprd04.prod.outlook.com (2603:10a6:206:d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b216b16e-f422-44f0-a185-08d589b0ded4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3267; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3267; 3:YqOUaJ27KMpcVfu1xjOzhwMpAtuGFfc3Qs8VyMlJBjsycfnnmLw/CdFe4dNz2Sqrp5QPKefBNuKcVd5/H9KbB2cHZvfmV0qQr1zeVh1AotkgsJ04Wzhm3lsQ98yRoajga0pXspLUuIh1qPufUjuysg/jufGB+4EInVoKimFxsplniEuzPRaYv8Y6m01hSwPv0uj/CUeM1gWyAOR7Sgqr6DeXdC4fIKlNEDh3vNhhXGXijAVfoSeqV2eNb2/xxzTk; 25:722utIRu44hLDxF/VgoQ/HVRI0jo9ZhleesfHZJTI5uNJd2ja+/+wODOjdL7iYLZJxyumKL2Ivt+iKw0729PXC63/eHM194BgHX91MFwT21MOQpwE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uHaPZfIjlrkl/Y+4fJokL02YQcPsiDdU+NirMHYuhwEZScvrnhUZIbrNNGrVuVLgCIJ9fSu/wlDLyl8l/pi3Zmt2Sp2fzoI386zKkHvH0IlLpo5MKNbSgAzjHvDJJlhPoI2LRME12/yNRb89TwjiHCO5SPDUexvG+egyTPrA4+Ydgga+c7tXix/T/LLBnDZWiwocuTvpWHIIpuMA9zp8gah3fmYmZMqu0bRvLCeGxIL8PiiByMm/Auvm64zbYFyMfIpmRoG9p1zlXrldE5EIb4ZFN3J43+Y7Fqlnqaqg8Qaxx7 X-Microsoft-Antispam-PRVS: <AM5PR04MB32671BDF9990DB31660C7359ECD10@AM5PR04MB3267.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:AM5PR04MB3267; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3267; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(346002)(376002)(366004)(396003)(199004)(189003)(1076002)(68736007)(7736002)(6916009)(47776003)(4326008)(8676002)(2950100002)(316002)(50466002)(81156014)(25786009)(81166006)(66066001)(50226002)(305945005)(3846002)(8936002)(53936002)(6116002)(36756003)(48376002)(575784001)(2906002)(16526019)(26005)(3450700001)(2361001)(86362001)(186003)(59450400001)(478600001)(51416003)(76176011)(106356001)(52116002)(16586007)(43066004)(6512007)(2351001)(6486002)(97736004)(5660300001)(386003)(105586002)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3267; H:rhuath.am.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR04MB3267; 23:iRdsc05GfH8ktpU6eNdhAeFnW/W3w0IGCo6Wno+C2?= =?us-ascii?Q?zf1ay3nQiiv5JeLMYYFpBayQvMh7W2Tjw4V80HovvSUWZKbMndJIw7uW/K4h?= =?us-ascii?Q?ntNcxRiwuG1/xreWUz6sGJQhpx6LXj/A9YVZris48K//JhOc1GWxFbyyW+4N?= =?us-ascii?Q?1pND4npmsjk5T29hkLs9JHBcw7oav92/X8pePubwFQUi8sF3CKjbJ1gFN/Zv?= =?us-ascii?Q?bzpCM3WW8iIuWJk4ijeSfZd7dtTDhtpTBMvmQ4+wF+oMAqoE1zWbdzfRpFyU?= =?us-ascii?Q?v0nSQqCPEfetHMbBdefN4C3XAojpDIixCRYvpFBTJvUw9mDtgAdoyFuyM+FL?= =?us-ascii?Q?6c4qLruFCF25/Hr7Xg3QZdYAAdxRdUeAOu2UZ0w1ZhwSlcIIB8Zr0JWSiWcI?= =?us-ascii?Q?8X7bqDZeH+lMeByhb4sUEQY+26cPJyFO4fRMmCa3xI6HgDSjBHyls26frtYy?= =?us-ascii?Q?DpYgkJUd/jwK96jC/CwT422OyAr84b6eK2aCgrUHWTbT51WGISvkWrnADvZx?= =?us-ascii?Q?lY1l3+gQoFT0Ngggs44TrMnysuHHzeN9df6KmZucRJ6gxVyT6hxLyeBeE3OO?= =?us-ascii?Q?o/W/rDd6W5rfhFmjrSVE6e2oaHLeQdVfqFW6RW8ALHISFsSqOD/TPKvspCUV?= =?us-ascii?Q?1wUkvOlsY2OblHhnKxIg0IbORSk0jeCHqm2cDeKpZB7v4ZKHS5f5YKwPTgs0?= =?us-ascii?Q?qQhGbDJxP8B72+J05oHjvmsGgct6sSLTSf2fUlUtqjYvEb/ltDrMQOzdzjvZ?= =?us-ascii?Q?JT72wPUnRHySZVrV/zh/6B3DjgS6oF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DyNPlytGGnnDSfnydaEwq/YgK/prTThBxE6Fr1dYo/m5uBEzJ7OdRXriSjI2OrfbSwUdvWoqjwvzQXnNDNS1pqS28dZcgIl9YkYQLQUXuGSnpboIjJExQ=; 5:oyzhdWMbX/bPoeBGcr3prMrAMpwnNsFDLFXiWwryz8m+1vGAvadWMEbJIMWo44vbskdyBggjIlj7Tte8cMp+MuYlvo2SRYCVSLu637XBiivTxh325tbs0hhXyqXGlUJdWhbrQaQ420BuCBBRhvWB5i2i3TIlfqBuhu/mBH6dYz4=; 24:8x0+N1L46KrPE3tngOWFN57d3g4opZRLHgramX66oiI+0tTyAu8SNZLUgjFjC3sbUnpBD2HGgmBkEFjy6Ya5SgZOzIf3uNA/JAx2WIZDQxw=; 7:sXza2gqQDWXiNym0jLOfmp66EvRubZxV77+zJHJy79wv7MAom7Ywh54PZ8rV18dDtHwm2PL+zgg7l8H8vd4WlY1wn2WDkjOmvHz4NQOybjXdNRDTXrHiYuUvrD5DwTw571TCu1ij3EXiQE0Wtf7WH5DkDQMsutD5kWa1lPcXLHcawYAEpme6gamJ8KAoRcka7rA+24e0rvoGrHM+yomUu3DDt0SjZ3CSRwb2iMESboRCoRbOxq4G5n3KrWSlhflH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 13:38:27.2425 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b216b16e-f422-44f0-a185-08d589b0ded4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3267 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180314_063838_005330_FACC41FA X-CRM114-Status: GOOD ( 13.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Reply-To: madalin.bucur@nxp.com Cc: Madalin Bucur <madalin.bucur@nxp.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, camelia.groza@nxp.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 159dc2d..128e0a4 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -2871,7 +2871,7 @@ static int dpaa_remove(struct platform_device *pdev) struct device *dev; int err; - dev = &pdev->dev; + dev = pdev->dev.parent; net_dev = dev_get_drvdata(dev); priv = netdev_priv(net_dev);
The recent changes that make the driver probing compatible with DSA were not propagated in the dpa_remove() function, breaking the module unload function. Using the proper device to address the issue. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)