From patchwork Mon Apr 3 08:38:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9659039 Return-Path: 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 818AC6016C for ; Mon, 3 Apr 2017 08:39:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77D4E24B44 for ; Mon, 3 Apr 2017 08:39:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CA1A28450; Mon, 3 Apr 2017 08:39:56 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 248B424B44 for ; Mon, 3 Apr 2017 08:39:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbdDCIjn (ORCPT ); Mon, 3 Apr 2017 04:39:43 -0400 Received: from mail-he1eur01on0104.outbound.protection.outlook.com ([104.47.0.104]:28716 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752217AbdDCIh3 (ORCPT ); Mon, 3 Apr 2017 04:37:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qpvMWNE8Zx0fWsdi2tRtbbvcZOIlqx/cF0xCILI4bP4=; b=LvXCcWbLMPlxYFuyWmoczI95oi0RMBvBSFGCj7l7Ksn2C8tfHrx04EXFNhhrOSL3HDWjn5347ti3ysWV9MYW5mSy34L5bWTKdvL+1iMwTjlP06PHsmT8sSTwZRfo0Gj/f7SD/b46pjhlRyqApzSFA2YU0+FCW4AaBGMYUtWFO8U= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from localhost.localdomain (81.224.171.159) by VI1PR0202MB2559.eurprd02.prod.outlook.com (10.173.79.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Mon, 3 Apr 2017 08:37:19 +0000 From: Peter Rosin To: CC: Peter Rosin , Wolfram Sang , Peter Korsgaard , Guenter Roeck , Linus Walleij , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mauro Carvalho Chehab , , , Subject: [PATCH 3/9] i2c: mux: gpio: stop double error reporting Date: Mon, 3 Apr 2017 10:38:32 +0200 Message-ID: <1491208718-32068-4-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1491208718-32068-1-git-send-email-peda@axentia.se> References: <1491208718-32068-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM3PR07CA0091.eurprd07.prod.outlook.com (10.165.222.25) To VI1PR0202MB2559.eurprd02.prod.outlook.com (10.173.79.138) X-MS-Office365-Filtering-Correlation-Id: dda2c91e-6ccd-4ddb-1b16-08d47a6ca522 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075); SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 3:YdBbrkljIk/r3XvECZlhb76bVw8xRo5aHaKhU1gx8O7KYHoJAOS7zsuICGe6ylhMxYeIU5sr1vmMwqEebwx+EgztMyehCMzhAY9jt0Oxov+MlZzB6AkNzu33zqnRZJ7/wUQV57Y5cXz9P5WHATbSIum53nJej/tP+Uw7VAKj4Xne3DvBt72oaVIFkRFVfMgl69xWpA/hxdPi1JiGZGoaWft5f4pFw9PVD/oiTCq81G2AJtFI8IXZN33s5a9tmTjuURM1XWTxGGEhP2wpx9R7mNKEdXS922qEGrHb6zsWgLZP8+Uk9Led3H75/5E9EsT2; 25:ol47Sas669UOdpmD+znc/R8ugNvtuX286idrURoSzS4idC1rS318dnpzGeVrnD8Ea93mIdswfusbva+B2cGVra6dKwkZodmuPhLTqE8q0wMXqQXNntMCiniaLga/uhXvJABYrkHoULKFlvvWgAUqGYwkBk/G+mwCATt4WdEuQDWtXtzaxJf+v3Qk1pRpBoTy8wihY4qUwqv/YOVID7dAwghT9lNFQGp/zQ7FPUoMVNqg+bRRlNGzNwcXcL/mNibDBTyYXynXo81GJ1L6Acxma1PcN+vTNewPjfxcaPih1O2+KQQtqTkpt2M1Gsl/ys/leR3rzGTkMA1X55jFuSvg9FSJgdNeRMizUqrWBDbBwRH5tOnP2BGZ7/LSRd02RmCSgGTdcpYBHn/O2tDltk5zQeTBYMCY/2qtpsOMVcXr9mStziTmTUIECGFT+hx79txMo0p0ynP2NK5tcSvQzAd1lw== X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 31:QiFp9TksCra1jo2k0d58mBC6hXLmoi42qHI1sELuZISwMnUIE7BYgs2rHg2BZvKBh3br//BPmdMnucyIAVgbySgnWrNLeU1cv+XV/vYLkrIzTvylrOisOFD95Cs9aNe1sT7AWKLQW5agKBVwXX5FuNNd+NXq4eSlEnjtC/eQxZIB/ZfGVXdcL/bPvdnO+Y9EPDAaE9FLRv2Xl9GV1H+V0SJOiAe/+4E93DvyEP9H7g3FiUZprJmiSAIkNBXLztvt X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(2016111802025)(6043046)(6072148); SRVR:VI1PR0202MB2559; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 4:g126axRS2zeHQkIbqLZj9WIFrFen7Gpz7nTzwTUt7WI0JjO5ZBWtqu0Lcnf7ghQ/w5urZoSm9JtYR127DtY3AEgaQqxLo5Zrby7VqJdf5gGlb7kCZJfRfGq/fVIU+S8qrg4mhPdaSVONZon+g8so74xUH8JH4gVlyHT/vzI+T+0eNlaXpzKcppdpLPuw+wX03FnFwmtfQrhZxOd0Ya2LGMfXGqmKAAxVGZIrWI+2/YVmkFRfZsrClUtQoxaGCd5roxrGMEAUxoQjcPMOsBk62jziTq6+58mmu3pC0Pgw19wNT+8Go9BhJPfvFuyzEqTLLpNEW1MBVw3zdITTNWYkznt5Llynjz3vUhBXYoScVy8/DYR5blp3kclz86OvLCJhKWGfO4qf22ve9mAreEhoyuOkHDecAf/iVFRzmTQliZeeKvsEGBBlUoKxSTsm/E7H6+npDebJtSyjR9Fihp4a2hEqijqx6RPc0/3py9a1j96NqOvWYRWtT/nzqh5HVVODcABffI97sUQWegqPW0eUEdeECrwZudvcKlrWn+hLxSX55uIUL/t+lqpyC2m+YPjBJZKKFYzfPpJ389uDvUzAWv6bGkFFbeUr3+PgKoXvz30sP4IDdUUTUGnMXI1CLvTSWLSHkfj/QpNjf8cmv/0wWgchu9Y//tLkHLoCsyn848/2/R96SOEf8eN0H1ilMYoKmYl15tyaLLHgILd6J6pTeASoTP58a/PIHAfXIWNuDHOLVk7OuU38ri2Pdi3FAb7sGAoeIB8X96ttZpxxpz6ELg6f1KwHK/7L3pKO90P6O3vCu9s2UCcIFM7JcOKiAmfZ X-Forefront-PRVS: 0266491E90 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(39400400002)(39410400002)(39450400003)(39830400002)(74482002)(6916009)(81166006)(6512007)(54906002)(7416002)(86362001)(25786009)(2950100002)(53936002)(8676002)(5660300001)(6666003)(8666007)(48376002)(2351001)(5003940100001)(33646002)(42186005)(3846002)(6116002)(305945005)(6486002)(7736002)(50226002)(2906002)(50986999)(4326008)(189998001)(36756003)(38730400002)(110136004)(66066001)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2559; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2559; 23:17tNrFHuh/PRwEUV+2ZiXHj2AZ4CQd7Ekf8aLTo?= =?us-ascii?Q?5Rp89nErVVNTzNYPPgrgcOszVLL6HqaOYV7tSxke5asfJtzz732UiPEmVEk1?= =?us-ascii?Q?rgv//cPg6NtWfb4kD4SWGee8NPH7SAWUFRiJ2LSUKnLKdtstkxeb4LJ9ca1I?= =?us-ascii?Q?Tm9PLWAfar6DrboTNOhyWmInbrYOc29ubymFKMp3w5UEN++CLVsiBRIIwvBE?= =?us-ascii?Q?IwAswPV3nd3qjJ3tDzTU9mgkoE7mOzXJD5QUCSr8bg1ec3Vni8ReYzo4jZAT?= =?us-ascii?Q?E8ke5Av7CuZj/e4mnrF/kSKF8U8OffSOfqwRxLF8+fwTd4tj/GWkxKgfWx7O?= =?us-ascii?Q?GYmsYySBCqh0h58QRXK0DsMF6gVq/+2tnYLGMF4ZTHGkHGI1d/r0vFAS1UVg?= =?us-ascii?Q?CgwZbYkxO5HkEPcoDhA3axwxNRuUpOi63nyYeUqKL3qLDnPlx3DKwi235tJK?= =?us-ascii?Q?kCv/rnGe4oHlzyl/PwOLACoOae1NhMoPXARgwOOJgwd+rLzChC1i07sXFCPo?= =?us-ascii?Q?I4yLHcoIm7E/AbAhsNR1rTpKnyANEkA/Lo0PdtH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XuMRgFgYf+APBw==; 5:pJg5/pMKQVjXBPk0gumco/H+EoRtPd/r3RsB5545OFNGUmQZ4oqMvup5safl0PQpMGpjRwXDA/JAHXX0D2RxayNWaBjLov2dclBi+1n/3VAPkXqh3yPvOti1lwHpv5zneXrTD/p72Lfxw+4MY2cPvA==; 24:aA1mv9UEws+Urb8vrTCYy9DyfJCeBmolA0jVWsHzr6MzNvQnFeiYWp5naaYRV8Wtyv8i3nmJ/L5xI74hn3fo3Hxu0m8Ziq5Ls4MMu4qyy+Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 7:pS/oeuXL2FylKk3uo7Bp3cmqRoVFVHlI0R1rarjLphddkKJMl6co0Qqtovp7PXs5p3M8vhKNf6HCEz4ZCQzU1qIvxgI6pTWeOor51yan7sAvg28TaPDMtGvoCFGH4sc4p9zvGa2Jso57vdvM4VBI2z1yn3RatIxfxVTt2GP14yX5JU8SAXVAUv7huKYgkgpAB7Jhp6CWl1ELe/Bw/H+Xyf+syWNtsWRQyFWA28BVPPF2PcwwyTj123j55OcleSTZhPoGViSrBYN+hjhz+RG916oef2cfGoKdKT4u33rQN+8yX5UXTeffFqeKWx0r657LvRbaPRAf5ztvadqnZqdj2A== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 08:37:19.8674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2559 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i2c_mux_add_adapter already logs a message on failure. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 655684d621a4..1a9973ede443 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -245,10 +245,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) unsigned int class = mux->data.classes ? mux->data.classes[i] : 0; ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); - if (ret) { - dev_err(&pdev->dev, "Failed to add adapter %d\n", i); + if (ret) goto add_adapter_failed; - } } dev_info(&pdev->dev, "%d port mux on %s adapter\n",