From patchwork Mon Apr 3 08:38:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9659029 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 317FF6016C for ; Mon, 3 Apr 2017 08:39:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 267D324B44 for ; Mon, 3 Apr 2017 08:39:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B3EC28450; Mon, 3 Apr 2017 08:39:00 +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 9966224B44 for ; Mon, 3 Apr 2017 08:38:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752278AbdDCIhg (ORCPT ); Mon, 3 Apr 2017 04:37:36 -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 S1752226AbdDCIhc (ORCPT ); Mon, 3 Apr 2017 04:37:32 -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=oFDxSI0Yqt4l05+EQHbYlLTZg8NRuTuMC7Tq0zIcNUM=; b=veNNRiktVyCeRnRIJxpv4uruVjt/rMIEWqEjzIdHQnx2LTTMbYqxUvzFCJmTmWutVYuGkTkCzQXwWc7p0Rd/qokJMHxMEndq3frv1Q5EtmFRR9OxWjCRFG9KiNU+wELStuu4OMzUCZTUn1LMZ9WXI0NCx5LY4Jnu6d1Huz9NB30= 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:23 +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 4/9] i2c: mux: pca9541: stop double error reporting Date: Mon, 3 Apr 2017 10:38:33 +0200 Message-ID: <1491208718-32068-5-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: db19863c-474c-4d2f-205e-08d47a6ca731 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075); SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 3:ECbFPj6PEAy7SnCkisH84vKOGibGKxTG46NaPWDtiJm9XivhmXt3TN3XxUU/gs30wD+F08Re2iWfeSxp1QGtkjlbJ8Fo1Xg7J1BOVRrfEcRCOGvoIlK6yYJ+WBRimqFIdyEBqS4Z5JJBVelxMxL1qQDp2kdsQ1Wnkb96bkGeJNUKLE3ktSOhO2MKSqWXlByH87lr14DXAz26uAk1rkekuCTik1q4lxoFiKze5vDSPjv0V8h2bZVb48OWZgDIVl7fmGNa98fHfpdOjZtQ1+DGc529jiPbA75D9yeVU1Aa2ZhzIvWLPy9azQQWY2R/tzqU; 25:LL1I1Sa2ioU776JfjkcOkNsBoQGilH8XuZrL1Z3gnDFKJVeCE7Je/zrS+ohOCpVV99IZXnXJ/zEotaZk3RDAxpwI5K7knWh4RjnePyj+aNNEg1vrZfqNH/GxPH/KCIq3ol0lrC8YRoOlk3PpxXIdGmOxe3nSvuKhE5k0h1mRjKkrbsZGWloDahk7RAJ99y3KDRdy4wyJKmD6Z0JuMvapxzXRxwvjSCiC2ma4raqWD/9aBYTxRtB1DOOeBa7mxygqaXImnRhP4dY/36uWJzf8byVs06SYxs/Op81/50XZzy4vxv+YaC5U8tHo1/Yfo9ohA9LvqHYj0ga0EgqI50LMKUlAkEcDONLF4AQxxGCWiXDvUfZGp4rt1X6UOHDrtoSyaAiixtaEeda7OCJbhRruW3u1cJZDQwH9V671P/aUcuuWn5yPVXBtBKdVanL3Egbu X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 31:FB+8OjX5oTNK2RmzOo+Fs3vRK8gZcgvmXbHkgbPA5kPh9kl94FIIb5cTzK/tJWiXQ0i1ncKz+yqXxhZLds/1PhT3QiPWNOpcSYrmiKHVOOXCbKCHKlEqvhOrDTgcFAnkd2UObMCGmkwG8UPonJNXkTRC7VQWTh/R2Fhv/9uShbERlcnjzJTV13HBCuIaBBZH6yL+2JpCJ/EIikdv38WtGYq2FjQ0xNck23uNJcMvo4GlvxiKqCdWrRL7hVtd9PCP 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:RiZ7Qxip3a40rHb3cLNm1sJY018YXGrfGkUuscYtDmlytNF+ubup0b5RaTCx6hGqd9wZa5c4FrMwRfLulRUgfXvHTywp9OYUOQz6OgB2uyqlo2FzKn2gQO/r8oyl3qYx8/DEY85Me7h35NF2/ZjhQeLRvYtm1eumVkkT5Yi8hJsrY7qeLSOdoa8uCs9X4K6uqUZR4mtA6tsJPPFIZ+vFs/bMJCZSsrk1ENcPZIzIUIyewRMKXpJgxQ4mzFm0Kbj6DnIK/5Bw5bv1wDzqN17PIIrqf4QxegM/01gFZel6uuX4uhvqgB2uz4+3beyI3cnDscPV2qumm1tNfL5THUcDCrAQ42rDLgvqq4qcK9yQkzQhYI/jDcsetnF/f6nZiNF8qkWyyyai/d8I5vpM1ABFjNEzsaFag0zRM81Qs9X8Ti2RZoepicdt2hc/AyircOJ+U0FZEZuM7KaQz8fvDq5z1WXNSFcEn26k58mGFGCBWadoFnVD7l2YzEXKeS64aL3Iuxcz1hMN6l8CWyHEp70CuIllDDA8PaQIFuiU0lE527JkSSoViwaNSPfWzdxM4SA9sFM/cxGR61FjyCXoGeaC+X7rjL6hKGZ3sVx+BPoiMOzxrtZVu15mXMoEZS5DJzjGBEaCwzsUb/64oiLgAWOQYdCJXvUpIRR8YCPTinxHWjDtWZwt3Hl6nJkkP+D21BS4dv5MlCxfNy81HjU/MbE388/Mo4eKrk07Gy/EZiS+izIeX3Qj/tG8+7l07gOsvYMur1//2rB7vjpDF2FobmWm+TIXm6FbM8f5SoR2CL4K0q7hm3OltmrQRfunB5dLiVNH 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:VDAVygSGPA3n9F3QCg+x+MZu2gzEkmrCZjZUvmJ?= =?us-ascii?Q?WT5Ue1NEEkgXkooGQV5SmPgaRHA+3ieRQk5E7SKzGTPg1OEWZ/96fxkogIW2?= =?us-ascii?Q?NWeOTV4uk33hk5eFJfYn2L8T4IkhkEA4qdknWa0ohNk5Y3FNhmy10Kl6HRyp?= =?us-ascii?Q?a5Z62qYzykYVIBv+jCF35h6B033RZyiPFHxA8yIcKvkw4wfZY4noFHZPP8If?= =?us-ascii?Q?w2bruZTyuSeV6o00WHArAO1yP+LBSz8Py14H3+YiTaTDa5fxzzWe9aPtzGjf?= =?us-ascii?Q?HRChJvBMHQt3Sr8mmu0cABKG/bEYKMLWgBWWAlCA6s2KhnpzoQckQLtUJmyZ?= =?us-ascii?Q?5ErCAFu5VwbFL4xoEs8AXXyrFy3JAZIqx5T87kLlJ5RVGwMQbg0up/tfzeZJ?= =?us-ascii?Q?/jSdwoEMDyvsvWpZUBwLJk3EBBE42+BXLSoi9Rk6FUJSqTlpO7s+5URNSJHW?= =?us-ascii?Q?SmxjCsGRNIeaghMeqNLonWa0KfT+5ZPHv+Y4Afe+IpeaY3dKjW+NNmSKQ6Ro?= =?us-ascii?Q?gVkuyeoJC9552OWdMu6Q9QKQGFdeS2is773I2+iVAoBDRAwQJ05elGiEb29z?= =?us-ascii?Q?Ip/zuqZLPz4U5FYLL3PAioxoUEZyqBBwweExZMrvbPeImnDFHUYWPxcjATWA?= =?us-ascii?Q?2pmks0q18ApV1k9MSgZgmXAK97FgpKeHvV2H9q9z1eUcaje6/B7+s+B0kqle?= =?us-ascii?Q?vD8fDrdcRLQ0RF/nPwGNW2UX0S+buHPrzmu2iXNJ6GMTbObrG3PHGCL5xPFA?= =?us-ascii?Q?z65tAEuCTHsSB6VMxY+U+fVWBuVJCkUNfTU/kwlloTf1qgumqgAk8CVnjtQQ?= =?us-ascii?Q?snroh/+F4PKfGvRID2WcXAh73kL993LF6XelXdoiOAehBJGj/pNJr7XO6nXE?= =?us-ascii?Q?/fS3E9P4XS9S57kyxvA5DF51p1zU22KmUPeoy4r7KZlH5EvUt0guKapXRchg?= =?us-ascii?Q?qZ0s3vWyK5nA+jZvrhKO/fFBMfNlvasjGlncAiUyPYiN49hwSFuz5hxl2PAa?= =?us-ascii?Q?Djl3b4vAyj+xblz/l4AviPbHltKuXlJ450zC+/PLjuv77b1bHNTwUWWnIP2c?= =?us-ascii?Q?p3cYzAZE=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 6:L/vRmxCYOCKD284CAQdvGjTxPRJ1U4yy9bjd3Hs8greglbjQPaFFM7W7txZv/BniMLvAkO3+mbrcFuF6Yk23g2Yl5XzdYXEOza1d71zzcupnvVfpxyTvetFFNQ0jAcBgfyt++x5IY2hodM7eetp5zXpB9pJ8+RwpRQQTik6Cx7kllcbR3nh6XD/qsmyM3yu+IsPxhQ3nFythmJLRnJr7WjmZFdqSAg7Xhd/D5DLF5fPwyNi1xrY9A+B799/+g1UuGR4LJeBpCVAGsVhwViOUa9FQVaVZUaOQmIA6CVxtsWmCW/JR8jj1rku1mMERyy1JF0UHrMqXmbiRcgaG/xePwzwJgznrzrYk4H37fSFvY9au6AnRltdX7Hs60WtVARclGBUXKIVd0MQSGF1Fs5KETg==; 5:Z8+XEN5odSqD2SvcBsp+wFQ+IrddPvbTp9i9AUjJ8JW1ZtLtboSSgKkxmQ8qNSQJepU1ZbFOI3xRNXHJRnbQK5cpM+2BOY6gxIp5ITRZHKvoKeu9ygSm+1yF6wpRITXk9Hgs1xel3XdEmfMGx9PZsA==; 24:R3nVz6a2ZAh8S+21A5lNnSKcqwhaWaFbnyNQe8hGi56d9G8F/bu4u3CYQ29JHHUcGjFyUxlX4bZ4VMcm05zzJ2RcuHW70+bFHXV61eY+4rc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 7:psZ8tJdmwOmdk0qirQhHj7a1qw3ejDoGixOq/C6P8cWbdOYI529nXz66yNl6xZxgsI3SKQWp2t0IWh4UeExsAPvReHkihEFbnhl5BL2NdFBt/J2v1aX7CdJfqBHrYasxQkSKF/Hkd9uubsTlRIPOhY3wEjWyWjKN4+GxWCQNbBncF/7F2GIyUdIInW9GCPI3rnrreS+mskMmPxPO2NkwJNeY9OquzrSuv067+Z4E0TlEiqCBOiH982bQhQqMdePL2HWdNZeQ20SLKoFbPrbA1/IdlXtlAip7Q8+WzMkzKQ8hEsZLowJfnR89v1UcqG4YLHWMRktESufXjX9dzJY3jg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 08:37:23.2892 (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-pca9541.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c index 77840f7845a1..9e318c9516c7 100644 --- a/drivers/i2c/muxes/i2c-mux-pca9541.c +++ b/drivers/i2c/muxes/i2c-mux-pca9541.c @@ -369,10 +369,8 @@ static int pca9541_probe(struct i2c_client *client, i2c_set_clientdata(client, muxc); ret = i2c_mux_add_adapter(muxc, force, 0, 0); - if (ret) { - dev_err(&client->dev, "failed to register master selector\n"); + if (ret) return ret; - } dev_info(&client->dev, "registered master selector for I2C %s\n", client->name);