Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752339AbdDCIhl (ORCPT ); Mon, 3 Apr 2017 04:37:41 -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 S1752270AbdDCIhh (ORCPT ); Mon, 3 Apr 2017 04:37:37 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=axentia.se; 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 6/9] i2c: mux: pinctrl: stop double error reporting Date: Mon, 3 Apr 2017 10:38:35 +0200 Message-ID: <1491208718-32068-7-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 Content-Type: text/plain 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: ec70c89c-7541-4118-c8c0-08d47a6cab63 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;3:BQMPbB8u6Y4mbNF/uuNmZo98Qw/3N15cvJCi/n8QmlMF4L2wqtYHtzlr3aFlwxtEcZtXJD8krIomIzhaTtIBkAesDn1Kx/xWA+jh4MYmPuzv49pC+grqRgXsCGDsrnbCfapJhHMtqLWApdOXDlp9kNuL28KWLT/M7xsYAHennNNusgyKPW447Lt7YIwPgMxZDlXRkazAFzKRS4AWRqfQFaD9Ll+D/6HgE9GgyWi+8OG1grUXrQSuoqvBx4OU57Yi6ZoH5kJmUolpwjPv2GQC8aHSa79eDWYVVXg/pdtPt8077Qkd5c/nXx6RbQSX2fX2;25:Mdj/Mi5Tn8oPuIoSckabEOg5mZDOxiObu7vbc7bU7cCPe9ZSLl2LQSDl+OVg72LyULpXqUaTf2RAB4bpoz7v79B3MXJsqskJPZF+VOX2Oji2aLxixCVs1MimgigWhzG0n++4SZq/a2/EeZ8nduZ0K0rBF7vgVZyXXCIQiIxcfJfp7Q6ueNt3cVDY6v2B6Obe38pxB+tLuhjmeN9QZvMIA3yolmOP6Jb+wp9B7Fxe7FFIN/e5jrcMkY0nwz64QVXi1kGfO13FuoBgY6ITrvJF8aPsEPy3p5EjNrv5rlIJg1FoAqTIOQE/HA5Shij/5c1FMHozW5Whf2D67CFhHGS9JUOZ9nxfJ6oeMSr6gh66VkipOOR+JQdm6jajy64L9HoOYoWvC5S+HL4CLw72xKDJLraMfSBJINnmS3bj7KG5fXAQWwRP+PHww5S2Ej1rn7oejAmO8oAgq+KCvWtAML0ipg== X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;31:gA1e2YoRsYXTG1hQj5UPOFk0WNrXCHLosGrT1T3pMvn1qmY8CVcYAZxjwTzjcPxcJVxaXIAAaQUemi1oD9DXWXIelb/i84xVVfly9Tv0a+c/4z4uzP/G2t5GJG7iHOzioYoVfXYkLL9tyOZR7zUn1OtuZN8iwhtkZ8lHK4PtJkbwgSOVZ4ZxZYxisZySQp5x8XO+b/9Xbxl6Dh/r2d67MHsuqvWeNqVlDwucoVH7QeC3NvtA5tTafwvgD/07Pck1 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:uWkrHoyXZLaadnM/Hv0TyyActDm0L/uC5RjRmB4MzItIk7dStQlVgJw9BnlzoMNBcnE51C67yUVMdb0+P/rUZ6qKux5yXsU1lLWAhLPAqIE7bIg6tMrpsEOrmyBDvRA17WXGvrTpvkg+9KIIsX1iDuFcyE1BQIeUxoCuEZmBXNRY7J5u8+rfySnoBCl2ojf4PLZsuwUP6awqXP5jpDHaIRk1YjU0XyMeb8epj7i4xEWgjQhqshpSV180ceecCGryIW1SeScBP8RHutZSjjqIWEKeYmABrWmFlxr3jnGyYykFvEYnoN6E7l1h5EsCK+01xc/Rx8h38AdqlLkxoyCUrEqrsjUYfAZ/fRwsfrjjhzmesw2uIA73Q4vR1Tgy1Ihad1FkfvVwdfhuLVreNPDFaFlmo8XuzI9nGYKjJNU8Acq3hvOMbth6u/Wwifkn+muWxq6L5LSAWNIJGEVIjc/D25w4TLo8mO+LkxrDgy+8Uwcqvcl1mCeFrzhFg85ADHOdBWuztcPZoVNoCUugY+BTXcZM4q7C62/KqA91JmBwgkM9xZR+XltbWEZOARGaEro5l6u0kZDYOLkL/q4r5NDQIiaMK3NZjplWrojzKhapbavLSupd5yWdfcKTAhobBizo3SDQdbQ1BrToEIVb1bFvS4jZtlJtYw1SdphjhIvoO2AH+7eQux87iWFGnlsHSFab8dtGl01lRoK+/pGU0jXaPPf2XU0BwVw53e8MYB4VfAy3tG5szj+F7QjENg6yGrcUrZmloioNmUgDY1DtIl2Fx6ke+LPZO33jpdnC+plORAvZaZDMYmOtKhXJ6BtjANuQ 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)(575784001)(86362001)(25786009)(2950100002)(53936002)(8676002)(5660300001)(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:tLvaw4cZfOcTaY2Y2Fs/OtwXjPS4eoU+QmMPuNA?= =?us-ascii?Q?7tY7zs+h5TQd+CJQQujhQNGaJ/DMozVqKgUGVm5ZedNQ45TADP5fLsgOL6BH?= =?us-ascii?Q?gP9RiELEu7S/CGrwM1rVbGAu0IX3yqfrzIx3199FVaNsgDqCxois/o+fJJbL?= =?us-ascii?Q?BOsQ/jpwPObxPMksduda05D3NAF9XAsjxN6oPW/Dp/5n1hMkAovK+Jla5Ki7?= =?us-ascii?Q?7BDD7C8jam/kbY9IkJCcHhO2HinX9IeVkqArfqERCCg9/dLtn1FsIBI9OLiA?= =?us-ascii?Q?Tr5GGjrombjV42vhd4AoVi0nk82CASK6pR3DYUjKtwPvcTIyB536NsURREnh?= =?us-ascii?Q?lDIH6Ao0xqyx+7qt9cK6GTDv2eHjZT4j+wivZKWN2y9Hs4RdX+/UiOCj3idb?= =?us-ascii?Q?qD3z8PS948ZEo+USLwXmuw+7fCmwXX4mk+liuXb5RcxuOUWBBkgo57CsDgA9?= =?us-ascii?Q?w1QV+ngRtIYZU7EVdM8GPHoSDgWdCQO2yQJMFbCPx2OxqnTlhHCiZyHbzqM0?= =?us-ascii?Q?Bl0bODOcoVWvCj5hySrvk/SdJRHfXPYstP7ag8tHw60X0kuN1R0O0vlPHUVL?= =?us-ascii?Q?6++qO1imcZQR6l/ytZXXNABTzuRNFNpI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om4gPKKnx2mK2Cypg0eamoeVdPmeetocvTiDKRE8Kq9Ns8PUepGz/0phxtw+s7OMke3wVR+i2p7HCsFTtdLDiwULSWORGBXOmIBQ==;24:UGQsXpRgyic+Ofdns+O5sYYFV0HZ1j9j5ivO9FnzXo0WBiPhF7qLQiGLLXJ8UZ89x1taoX4+odXjUKVGzQ78uLsh6itJv1mKl8kjGy35qmE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;7:T9eNzkJxHQ5QjBm8B5CXVnQyH4zON4wnR2wxr0WQ3/pgILwAC8AkyeXgAcBfc2QyY3pDZFU4SwXAww53cWMrzRhu/3W/wktvq+repXYZ1pRr+rhAaUhtXb2AlLUGx5Ple0RLBIuaZpWWnl9aFYqAC9JsuyrmKIJg5XhZkMOY9dIogiO0CeIOCFJKPHvBUuk3uqdKtUipFEtKA0YD3aaLsP7r/tsH30cRXzE2rkEWodnGNQKM3Yabgf8Uidl6vwAWA4Mi9WV1htRHBta/fu0pK3c8ebaXJagw74fnNwTvBcoKGHytrieO9kz39mxT/BovDRYJlaudn9Qfp/X995Hmzw== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 08:37:30.3631 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2559 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 728 Lines: 25 i2c_mux_add_adapter already logs a message on failure. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c index 35bb775e1b74..7c0c264b07bc 100644 --- a/drivers/i2c/muxes/i2c-mux-pinctrl.c +++ b/drivers/i2c/muxes/i2c-mux-pinctrl.c @@ -245,10 +245,8 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev) (mux->pdata->base_bus_num + i) : 0; ret = i2c_mux_add_adapter(muxc, bus, i, 0); - if (ret) { - dev_err(&pdev->dev, "Failed to add adapter %d\n", i); + if (ret) goto err_del_adapter; - } } return 0; -- 2.1.4