Received: by 10.213.65.68 with SMTP id h4csp922986imn; Tue, 27 Mar 2018 11:16:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx492D38oc2i5S6PRLydZVdO2UXI63ucmxl5X5I0xKj4AXecIUl+vU9UobZ2URlLjif8YCQ/A X-Received: by 2002:a17:902:760e:: with SMTP id k14-v6mr356949pll.292.1522174565540; Tue, 27 Mar 2018 11:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174565; cv=none; d=google.com; s=arc-20160816; b=xIF0omXv6+SvxW5gkVCQAuAU5/koboyM1/pbppoLoCEsO5RARKOeqAS63sxNqjQdTA v54wwR0eURhRug8fcoBgQMy9snl7I35PcajLB1DiiuMbRLcLKs7NMZbFDkAnfmuMyzAy NwOYysIChV6ix1ZcbB4rLV1K0duDNhBxxlbFgLIHJYT8Gf/a1kjkyYypm59g8qFF/ArN nQNwcSmMlROz6soU5jb66Seyhb9P41PvTIg3ed7KzFY0VZMopPrby4sgU1Ac1LPz9YF0 Ma8ch44A/hzGWducMqvbpZJcfQbpK9V4IpDmTu4RzaNkp5Z7HJMOf5KRWeNKv9qbhHTl qqlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Xeg71SKo43fbDTX0HLKGrkqCvV/a/0UBgKfPnTh+hRc=; b=WG0/ZX3CLzyAYC8bGOetemh4slfHF3jiBPs6oNG96ys3LrKjP9+gl64/csfV0lgI0V BTXeJka79tD6Z7qd1qjNXl44omXUMvjIEtj+ulCYo9fOQOrrOHr5AFWhhruAPH+UFim5 LX2Vwz+tbvIS1N84u0W5/pZl54YX3wW6tyyrbuolo7QitRVEUeSEUiZMgzXTfjxWWEui U7WHTlWO7+vSHFlNq12CvFG5AO+cPRFpi6HhHx/J0UMlEeRmq18gXyp9nf5MaNddya2Q RjDnk74YpSsSKWoOynwc/J65MISBOfdNJUf8mxOtoS+qN81nCoKXlTx6PyONWalxxktE IVpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=CuHA5gYt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i21si1304196pfk.34.2018.03.27.11.15.51; Tue, 27 Mar 2018 11:16:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nxp.com header.s=selector1 header.b=CuHA5gYt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752344AbeC0SOu (ORCPT + 99 others); Tue, 27 Mar 2018 14:14:50 -0400 Received: from mail-he1eur01on0045.outbound.protection.outlook.com ([104.47.0.45]:3232 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751865AbeC0SOO (ORCPT ); Tue, 27 Mar 2018 14:14:14 -0400 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=Xeg71SKo43fbDTX0HLKGrkqCvV/a/0UBgKfPnTh+hRc=; b=CuHA5gYtDQgijp4VMDXl/AGiwg+d4oGl3sPx7HbRlr8EunWL5m0pasTQQDvP57sEvciAecUAv013IdPaPcQYLmokUZ7VG/NR/UW3WOvAB1uGu8SBkl2VFxDPzoHSidcUkSerl+I5KE1IPG2SuwOhAvnrRvU0J/mfIWLPE/nHQEc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; Received: from otc-sw1.am.freescale.net (192.88.168.1) by HE1PR04MB3001.eurprd04.prod.outlook.com (2603:10a6:7:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 18:14:08 +0000 From: Roy Pledge To: devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, gregkh@linuxfoundation.org, leoyang.li@nxp.com, laurentiu.tudor@nxp.com, stuyoder@gmail.com, catalin.marinas@arm.com, horia.geanta@nxp.com, robin.murphy@arm.com, Roy Pledge Subject: [PATCH v4 2/4] drivers/staging/fsl-mc: Fix DPIO error path issue Date: Tue, 27 Mar 2018 14:13:32 -0400 Message-Id: <1522174414-30380-3-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522174414-30380-1-git-send-email-roy.pledge@nxp.com> References: <1522174414-30380-1-git-send-email-roy.pledge@nxp.com> Reply-to: roy.pledge@nxp.com MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: CY4PR20CA0023.namprd20.prod.outlook.com (2603:10b6:903:98::33) To HE1PR04MB3001.eurprd04.prod.outlook.com (2603:10a6:7:1f::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 29e7115f-28e2-47b1-6787-08d5940e8a6c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7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Qv7hcaq6NwatgHLafBBB4plS1E0d9lzE6LJzrGJX3JVSix4uQu+LrmyW4EkHneyaHZMwmHoGpnPbL7mz8nbaFFVEfbmNIWyq1ab/hA13XEK49t3a85u1gYmxI8et0pYCBbUy4MDO/FOxhs6L1IwVEbORr2V6rqF8hCHOckkZNZRweLw37QHOiaNVnFvlLCczeVVd1jSyfeE7bbZ9qFdOvd8yCugNEdd8xpJRHTooc76ztX7a8vB4Vz1gW1fTIPHzzeeHYt10yM8ElRRYzgNM0uqKF/rXcCLR2veO+OH3P5i+7Th5GLOJQ2yVDEQgommIipRVcEcLPDMMeM8fw88APv9hLJU2e/cUheXUiRfMsgk5pAMHX7ukX+/O3BR2bdzJ4ZEFqm/RMUKYvxjk9ABR3yv6w0EC/Iwg/u;4:0XyJhb9tSLYfnsEF0GafUjfSeIVeyfvHGZG4Wkp/BETQ7LjSeSdCLztV4ppufIy4PVmiKZH/afgpKrgjdNn7HEhdJdds9nSyToHMkhTYuULQogwwtaXQ94CjO7shAGr9cbXkJOlP1lrNar2T4jStFtSpZtJL3mWjJVrtFsd+Y+7VOSoy1Bsp26Rv4tBJ0Opayw5fi09QdDd8Ncm56G+FWOnC5ZOz5S8UlCJBwOP+KkTrCM0yETKHBg4yUFqVC33OOKD64HnL1G9cybzKZCCe4SE6nsBO4KloTOuvJs4WRZYH5cU1uYliW9El1LCNczINpHO2sd1RIp4rRPJK/dImL+zoEdYYClJE1pDdhp0IpsQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:HE1PR04MB3001;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB3001; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(366004)(39380400002)(376002)(39860400002)(396003)(199004)(189003)(16586007)(16526019)(47776003)(8936002)(43066004)(106356001)(316002)(66066001)(36756003)(53936002)(50226002)(305945005)(2906002)(50466002)(5660300001)(86362001)(4326008)(3450700001)(81156014)(6512007)(81166006)(446003)(48376002)(7736002)(956004)(2616005)(6486002)(11346002)(6666003)(76176011)(8676002)(25786009)(105586002)(486005)(97736004)(51416003)(3846002)(478600001)(186003)(6116002)(486005)(59450400001)(26005)(68736007)(39060400002)(386003)(6506007)(476003)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB3001;H:otc-sw1.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;HE1PR04MB3001;23:pAKWnFws2mSBEO8d+OzjcLlus7m/DxXVx7QFGd/rS?= =?us-ascii?Q?T5W7UdRj5f9sAN2MEZJoqhIPvBI4NGB4GrWGPL1AyefYVj5W/AWrqtcWXIsa?= =?us-ascii?Q?PKLsVVp4ZFiPtgy8pCpN3rCKW7XikNmMqCkol4gR6tQLjeBNMRzFqQGEEWqM?= =?us-ascii?Q?mnGSMHWnTlIYFZrTij9m+Il2hOHh1drxVff2EzzztkbshMHha7WpsgdWyrPp?= =?us-ascii?Q?pFuiAEMsdGwcFybmBCh4GlNeYp2eZba2yvK4BCp0wk78ohFq7O2naKPcxhxh?= =?us-ascii?Q?R69hHG7qUEIpBd5Wk3H4zD55N4d/8k16kBNtTFCSMZE87eqKPYU/9922coD6?= =?us-ascii?Q?NvIftycZjZtI5SmT60xt4LhgT9Hq/S+VLO4cJM4cUYcF0xUXrA+SujzLQRRo?= =?us-ascii?Q?ZLv097errSbSjT4QK90qdo/d9q7c3d99PcAV7wfPMPFypfipEUSqJvXpcug4?= =?us-ascii?Q?k/eMSg2LwTA0C8CNcSDjkknGVNyQbKBJFFwiG+zdECpMJEGLacUVJDLL5jlM?= =?us-ascii?Q?d8iu3YGWR4rOkzTY7qgOUW7sP8cKRLyW0JxdS0n3O2dL3p910pGfTMqM/SL0?= =?us-ascii?Q?0JEGvsMIXapMIT/oW85+i62D7k5lZ6QzI80IchIilNblsIEUotbxxu2I9pvK?= =?us-ascii?Q?3LurOz3TnKZAC8HKPokLJt8RakQTqWiSJdZncK4yPXx5nbAYE+8hibopZKrc?= =?us-ascii?Q?7cX7dsKq1gbA0UO2EbufwFw5A/uftBX4bARL44goa3JmRh2Sb0i+ecv2Bdsg?= =?us-ascii?Q?D4/ZQFckvP8cluuz90UUXunTJAEebR0l1d6QsWKH01fMszh9HgVCL1L/5g0b?= =?us-ascii?Q?Aw8XcQISk9bztuynYM0Iz4BYqs9OA3Jf4W5nKSuH4aoQvy2XydtQb0kzso7f?= =?us-ascii?Q?4pBLzK+GZ6gs/1Ho3KO/9IYTzLH/Qwi0FOjOJMI545AAljcA5PYH/IZCtRY6?= =?us-ascii?Q?WEsFKifZdYk+M7oS3XX7OIe2BwEhcCg+opemG/0XbRLtALRgS48Skrn8Hjtb?= =?us-ascii?Q?VEhziQHMBHyLAqUIKw+f7J0prt8VF+KUNEo35PUP6MTtvtxl9eqXLtRQ4Lwv?= =?us-ascii?Q?/prWHFrwbAvk/saKsrw/tqHt+UJ8OhD4K/8EiRPaDtRAfC0pKPiji73DPBIo?= =?us-ascii?Q?9FOXG+YfSkWUZ4XxlbqTe3XPUwwGyLrsse4/pHOIe1Yk3XRkI7aFhNZdunlW?= =?us-ascii?Q?MarGMP9ufXTv09smxZuAgXAkjqfVYC5Pc+72m0oCssUXkBseP+T36h2i7FV/?= =?us-ascii?Q?rEVfH1U8PaQLh+0MshkdrH6YLuav+KJUh/vazzA?= X-Microsoft-Antispam-Message-Info: 4dhlgpfaJaA8Ju+57kJpAWxdoNucg36t2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0Zdm7lBJ7ZkYZI+tM6AFCIFnulUwQyx5TOEXYpDysnkgsXk8sBf/zXXDpFzK6je/21UdZoGtd+075bWQOqKVsbpL/ljH2xf3bQFAnW25Hwyrh6jYM2tCkTXGriIt+zHva7hYX1FzcmDy0HGCFr7hIKpBuZvbh89zGUo8gQOmsWo1gvOXrhsx3cgjEbjAo3QB/9Rr8uCh8VV2vaDFWU/Su5r1Kxc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 18:14:08.0140 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29e7115f-28e2-47b1-6787-08d5940e8a6c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded call to dev_set_drvdata(dev, NULL) since the device will be deallocated in any case. Signed-off-by: Roy Pledge --- drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c index ffcbd5a..9e12576 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c @@ -101,7 +101,7 @@ static int dpaa2_dpio_probe(struct fsl_mc_device *dpio_dev) if (err) { dev_dbg(dev, "MC portal allocation failed\n"); err = -EPROBE_DEFER; - goto err_mcportal; + goto err_priv_alloc; } err = dpio_open(dpio_dev->mc_io, 0, dpio_dev->obj_desc.id, @@ -196,8 +196,6 @@ static int dpaa2_dpio_probe(struct fsl_mc_device *dpio_dev) dpio_close(dpio_dev->mc_io, 0, dpio_dev->mc_handle); err_open: fsl_mc_portal_free(dpio_dev->mc_io); -err_mcportal: - dev_set_drvdata(dev, NULL); err_priv_alloc: return err; } @@ -241,8 +239,6 @@ static int dpaa2_dpio_remove(struct fsl_mc_device *dpio_dev) fsl_mc_portal_free(dpio_dev->mc_io); - dev_set_drvdata(dev, NULL); - return 0; err_open: -- 2.7.4