Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbdDCIhw (ORCPT ); Mon, 3 Apr 2017 04:37:52 -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 S1752343AbdDCIhr (ORCPT ); Mon, 3 Apr 2017 04:37:47 -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 8/9] iio: gyro: mpu3050: stop double error reporting Date: Mon, 3 Apr 2017 10:38:37 +0200 Message-ID: <1491208718-32068-9-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: 0e885626-413a-4439-1ac3-08d47a6caf5c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;3:kq3gi9RePtDG0UIh3pj9GrKHkvn4wGBz4Ha7Ap3pgQi5xpr56upadf8HGz5CA6rS7FTaJsiQKnzXvwDQGwrPD9/svNH8Eo6vOusrb2BDU1QZA6T1b+M+JS8+FZkw0+yQ4zOJC1eY0l2FhzmEqDUl4WaBmdifSHPkIW4fyvP++2P+PQirsJ6gV3vWoUhOmIdUjoCvt9Ok+qCVRPQXJZGQ1Gs8TXGDSwJozApZ9RkTz4jSAzGOE0XNAdEEIJ/nkemYmbVCBivYVoyd8KZ6tHgm6ASZfwo6GZoOzN3wRNcqSAMvM8LVIY0nAjWeY0SXwYvt;25:xyf6eZq5J+6liS6S4zKhiieI7jD28HdncvszK8lM8tH/jZu5o/WM+3I+Zxra/3y+0uj3nLsBcwFUBxRCgm3AJEmegbVYSad8OEAdCGrrzznKKxKiRNlLX9X6YjYfJCEIVcWuB/TlZZ2R/BqO6cdQRgg82AQvmrh6VHEvjw/yVo8XFWE0ZEBCEyO21WD9/F/lt2kUVGyTaL9pnDubRUZxn1S3fOlTE4fcEJHKSsYmjJBxwC6HPU+LZIlYldmkMBufF17cCITzdIvCqXaldKduea7mfICLjj+Ra6cPLZNE3P4uYesavq7WL6pb27GZWX8WGa+2H9zYZH7m9exRXUR1MYPQ8ZoDuyWKyRGqiD9yo8GUwQz7fit6ISw6DJJUh/7GtlF+1DZbpslppMfEVJPPkbiLK6pOExVcvnIBw23tNoCktLK2VdNNV9WWYxjp1qItOuLd93M0RFUR6Ik20LqOtg== X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;31:7oXM73awBy2ptTVpuGx3RcvreNXKEw2zXgCmklb4/mEIBcA4844S9LZRXljdXsIusJBmxDJRPRLpBJBbtKXNgcfwM/ui5X5Uhp4TjtZ3LksoJWQOu/048fYiX7HM4r2EPzm909XIZ0D7P5LnMmsrlrNSa8cHJIi/N6jFR/ebsHI92oSdQetPE6IeMHxfMev0zwdRVdm4pb3L2w+Q0/ksNt8/IZ420xysMt+nRE1nn1M6TsF+oWkxJnlTsfqjBUvL 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:EVTHfqaPrKS1siNwyAN3P10hQBuSHpiSfkCQ/GRIFgTK64hfzoVFPAQ/hqetaTg6eDhVwuPxPU/8i52p8EIr/0s4TXMPdBHdcS6qAjbpMor0zSJu3jWQClETZEuqgcNKDg3aQ3fiug7KNKCSqQ0E4SSNNwa2CoxvMokwWshEEvS+FC85SXnhmNWDWnYtzkdYyOP16xtOKfnoh+NF0eb5uxGaYiJXj450ATxbw6UEX54uWqHVo6Jcczp+fJ1KuFm5jQgLiD2GTCzBXWco9GKjNE/wBva/TDHkuXJueYczvt4/Qw/xwfdEXC0fOIqSX1zfXEtKm+ojAkdw37uRA5Tzh4nj2DNrwUiOEgulJr1E0SZZzqVMZc1hd4jem9phpRerbaW1I5a8+JYHSmFesd4FePWbpz3VyoTY1I+uGIqQzJ3E6PSkDTwK3muZJxrFfatxikqYJ0mv+4GokF/lbVdZ3f0UR0FKPqFJ7HDER9hcOidyC4JLASK2WllmXx8wzFjFpGPX/GiblT5VQCTPHMJAZ/ps3Bjttu1KnAPeIOjVpvpTQHMY8HMg9yKA4edd7MBgDkE/3m8SMQCwy5iAY9ABsQPbzZXmfVcjZ1YP9BVdODnxxdoOBG2MeOcKrYjk7b1X08xLZIFABfP3TLYQqHGXCMzU5dTgl++aICrcH1divZYm2L1FptsAX3NrrHt1lJBB59R/eN2kukdFlbXRi0Lvln8Ll/NajlCeDHmZCeXgvMJXQZR4/SA2xIyAyxA3ApS0Br6gocPcTW2M0k8yOorUoY0YdsO+FgN5lZsxB7mEBgDEAjU2tTiz3I6s/A85v5pp 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)(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:GAxkzZbuZlmbxiNJauP7DBxlw+YrxMXlKVp88f4?= =?us-ascii?Q?LSbEoLktlwhfrO4s10TKwo8A4YQtIPXjjZQlEAwllKmwNm5aoiqKbY8X1b6g?= =?us-ascii?Q?r25mzfmCYj3eFjVgeVDUoXiCkBlOlOUP2yzKWz6CQnUwmuF28n7VAW9fDA7c?= =?us-ascii?Q?zgQGXD1D1ze8iLpIhuEyE3sg8g6wWVKkPPJDLYV65eVC3XPcKEdbVAtZawgy?= =?us-ascii?Q?39XYY5zpcQAPTVj/w94cbzsbRpphd7BjqxjcxHowxo3LLt9EsRJD6JwKzZCJ?= =?us-ascii?Q?Mwgi1gcM6s3NPtIRw6tuh+zIzQ7/qzinuUCYwzh3J71AaAUVjCgxfoW7n5Vj?= =?us-ascii?Q?TmQHDNP/BDX03x0KNQfxikEfXgHv6Nry13Tr7CP+eckq2OirOVxzA3DU1rxR?= =?us-ascii?Q?YU3kA2JPRRkVf4oXeSqDvnBTWwjfKt84dqq5tYzJHydCQMEqWD94vjtML/iK?= =?us-ascii?Q?qd0UgoQVeolL9W3ENDeUEN6OW6PFdHcWx1323W9FvpyL/FWoUo3TGbvA6rtW?= =?us-ascii?Q?CGeM3jHoMpA3OSaoNILPpuBButZcxtJUawdsMHaKfDYSe62231TWpsRgMaz7?= =?us-ascii?Q?a37EvA9u3Hch8TgUA0u9u2TeST6Rs3BBum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JyZu7wGU6T8Wgsy9Dc12YmU8Yz8opOrv6HFeXiGfHpuMrOixlyN0qVg==;24:F3l1C5lJ5mWg65/9+ov0JNIZMn7PGHdWeP5Zz6h9Z8exVUf+MZUTTjlLmGy62dugHAjgKrd5Xqpt9yaDoSO7Xk+zZ4iBzpMqTYpi/JasXC4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;7:QfqM65Wwzvjcl6uM4mEcgSnS0t7hIRs8MV7Ty9U8fVBtE4zayrX0/64Yd81/XSt68StVK6iXVCssMHGZsv8/tM/JWxX+6gQWgTzBKGCim3V8mTUOrA/r7OvYif1S29gkieGm/OxFz/wgg5AAfBC8b+k+bZLNBk2vooVUiqzCh+/OaCmulvZX8WwKjOAp4pnH6k6lD+F4JnKCVt32OSgENT7dc8yInAodn3/pV89YEHqlrg6GlArmrEywu2xC2zhQpaEoJYWq9BXLAcAM8ojry5KKV6QnfQsUjFYZlV7B8ATXmLhjt+Kx7/xd3EzHUgBxELbNAfE7HyU//8LRngKTOg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 08:37:36.9897 (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: 803 Lines: 25 i2c_mux_add_adapter already logs a message on failure. Signed-off-by: Peter Rosin --- drivers/iio/gyro/mpu3050-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/gyro/mpu3050-i2c.c b/drivers/iio/gyro/mpu3050-i2c.c index 06007200bf49..93f08b304a63 100644 --- a/drivers/iio/gyro/mpu3050-i2c.c +++ b/drivers/iio/gyro/mpu3050-i2c.c @@ -70,9 +70,8 @@ static int mpu3050_i2c_probe(struct i2c_client *client, dev_err(&client->dev, "failed to allocate I2C mux\n"); else { mpu3050->i2cmux->priv = mpu3050; - ret = i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0); - if (ret) - dev_err(&client->dev, "failed to add I2C mux\n"); + /* Ignore failure, not critical */ + i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0); } return 0; -- 2.1.4