From patchwork Mon Jul 31 13:38:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9871855 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 46C9A602F0 for ; Mon, 31 Jul 2017 13:40:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 462E2285CB for ; Mon, 31 Jul 2017 13:40:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39936285CF; Mon, 31 Jul 2017 13:40:51 +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=ham 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 A49D1285CB for ; Mon, 31 Jul 2017 13:40:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752499AbdGaNks (ORCPT ); Mon, 31 Jul 2017 09:40:48 -0400 Received: from mail-db5eur01on0117.outbound.protection.outlook.com ([104.47.2.117]:27101 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752214AbdGaNjJ (ORCPT ); Mon, 31 Jul 2017 09:39:09 -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=xTp90usGGBboA+KCntESKtOs384KuXNCqwusFT+RVBs=; b=gZMgoygcF+NUNdgQja8UNd/Hm0GEq7yScxJzGzDJytglWroOhx//JiOVYjHHp/kQaL2tEJMDJV3UQO5xYpUwZ4ecZa6HS6aEiXvW/LAbvKGAIgbmHenQtBQYGOCysnjtsRBr8eaVN8MdRFLqqXOOCAtzbRiVHGuUihoKfX8M5p8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (81.224.168.30) by DB6PR0202MB2549.eurprd02.prod.outlook.com (2603:10a6:4:1b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Mon, 31 Jul 2017 13:39:03 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Cc: Peter Rosin , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH 1/3] [media] cx231xx: fail probe if i2c_add_adapter fails Date: Mon, 31 Jul 2017 15:38:50 +0200 Message-Id: <20170731133852.8013-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170731133852.8013-1-peda@axentia.se> References: <20170731133852.8013-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: VI1PR0101CA0049.eurprd01.prod.exchangelabs.com (2603:10a6:800:1f::17) To DB6PR0202MB2549.eurprd02.prod.outlook.com (2603:10a6:4:1b::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4355780d-dbf6-4095-8675-08d4d81982c0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DB6PR0202MB2549; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2549; 3:D3yGqUy3RspX5JTZSzwcyFfvMkNTxO7lqelEzzO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nZxG2V6IPWecn9m72KXfJAEONdJMmSjQFt0kOMgyrFjlPP9M+gi7R4aow62FzQvjaO7rQOfMdAFeFwPqx/1id4UNwA4Cz6yduFOLdp8W3140Qj0GRpJvHnGDS2aELquii8Awdr9lq1T/u+PB7vmJ7NlxVsr0aG3nLBzRNVhLh0GZPZvua+TcNAQ71OM79IqlTWbRQM70zEVo9UYpZG447PownafDchFNjjpNLROOe40QTwMJ+AzRPpOg1OeZ/VrjXhDgVV+/uBDtqXCZOAIFj6F8ehmDNeq9D9F0h98aw+ZkbM8yKdL00J2E/4jTvfoSTIZUbA8fsNl0eMTxlTWxrOHhmjDUex+otd8EPT0c= X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6041248)(20161123560025)(20161123562025)(20161123564025)(2016111802025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0202MB2549; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0202MB2549; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0202MB2549; 4:qkLcOixJIFopIMZWJPh0RjRd0WDpmwWCZAaY8mIt?= =?us-ascii?Q?2dNT4p3PSEmeBO5UPEss/Ulq6BbpjhG9Q4Oniewfxjb1IATilxjwssmn3+YJ?= =?us-ascii?Q?xMy8ajIdb8pYYnKhOAr9aP5LM+9cu8E+nYrSHLdBAyxhMdXtgzLkJVf++i5c?= =?us-ascii?Q?tOUhfx+8zGjkM4Kxh7uxeZSjbMykf2TdDZu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3e4vgbVTjtwNcaCPVLV67igJD1JWpe27PV62g7uqS?= =?us-ascii?Q?n5QQ7ngoPAFljLjXgR8O/+Z91k9Ndh/slAHKfVhemlsxu5ZsEX1I7yGz9ilC?= =?us-ascii?Q?4YFSiDVynJXvO62RIKMHUd5ZGI2Fb0rGe9P9?= X-Forefront-PRVS: 03853D523D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(39410400002)(39400400002)(39830400002)(39450400003)(199003)(189002)(106356001)(50466002)(97736004)(6116002)(7736002)(3846002)(7350300001)(305945005)(110136004)(38730400002)(48376002)(81166006)(81156014)(8676002)(575784001)(50226002)(189998001)(74482002)(4326008)(86362001)(478600001)(101416001)(1076002)(5660300001)(53936002)(6512007)(66066001)(54906002)(47776003)(76176999)(5003940100001)(50986999)(6486002)(6506006)(25786009)(105586002)(2361001)(68736007)(6666003)(6916009)(2351001)(2950100002)(33646002)(36756003)(42186005)(2906002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0202MB2549; H:orc.pedanet; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0202MB2549; 23:TIJbKDP03sJp0KO9S8ZFZ10noYR7I0pMvudLyOo?= =?us-ascii?Q?bbWln9mL+PKMwgy7BRmECLwjkFRvGGAVLd/ZfJO1D+aOlwEAp5x7spYAnBo8?= =?us-ascii?Q?n3ZO86tJbXSCCAcFWhWn5juzH30jyPJVL6b34dAXCIMQ33d3WTfElinSvIGS?= =?us-ascii?Q?OoZG45DMV81pP8hYsqfUxYa9wzhSydtuINXXk1MCfV8ZXVuGXjnyLH3WAaLc?= =?us-ascii?Q?CPwwzzHbZ6mMzy6RP9lMEayDyNNXxmEejFSTMG6OCJI/ds1ZWXpnStkd7+5x?= =?us-ascii?Q?Wcs41seB1YDHftPaU+tGE1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s1JZnz9?= =?us-ascii?Q?Uom905dWTZkzFBY1r0dkzPsOpenWQcEM0Wm2jJDpZ3mXYCGlbnoyuBHckZya?= =?us-ascii?Q?Z4jTEjfSS4DxuWcNgtWNyf/LyZ2MrsRLh0M0PKV/3ZouiFlg8DxuuU473Dzy?= =?us-ascii?Q?OqqTOywpwgkAJvdPgADV4le8opRstpZsyp2sClIwrHyVSPulof5Bi96A9yUq?= =?us-ascii?Q?UBipDjw=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0202MB2549; 6:ij2/bzot4RQffN9ZL4sq+HtHB11a/WF++2ZsAStn?= =?us-ascii?Q?rkyFPNFL5uSPFhgD3YkYQ1DYvFxZkV+PdXHrH8iz6rvgqxP9DLi+4L1Y/ZqM?= =?us-ascii?Q?5nS8SYhWX52sxXp3Kj0mwVRTVcD2D3l1YArKcZNDuHUemH+ODR7d7pIINefm?= =?us-ascii?Q?GyInIWpmxdE91bMQ2EyfzS8Lc7aMrgjq26KM+jBcI8H7po+7aU8RsIfp289D?= =?us-ascii?Q?xr/I3fR+gifXfE/AWwE+JhRjT/kAdeEJLPCFvLY/PtK171zZ7v5kS/1JR4m7?= =?us-ascii?Q?cQUebXHQr52Ozzy9VBjXF+n8ccwRHxtbiocYo94Kx/ZC8FTageVgblfYgpO5?= =?us-ascii?Q?GuZhb/7xwyftS1fAK8YqiPIlrd7kfdXWeKIklPJbljScUZv1mn/7P4aQ8JaN?= =?us-ascii?Q?Sz8MgL4pcXyjeX5KHONvWQLzWVtN8R+BcnEsqemnwAijENzBEy6Eg+nu34Bf?= =?us-ascii?Q?SeV1wN3/3F6R4fir94IypQkanpyZlvdTWzL8BksYvrfpPXOD1kClApa7mK2W?= =?us-ascii?Q?HBhltHNigp/vPANBr/dSpurc8qrpxqbKUzw/Yuh0O0s9Mh6z/Y3xuLSSV6g0?= =?us-ascii?Q?lY8COufOjt63vEEz/oyWkPfd6BTH04Q4FWRMq1jNfslJkAyY2DchMey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BJL0i92lhURQK/4yyeNwVToXaj6/wAPdZwPytbD539bd3OynjqxGOPdrKY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2549; 7:EG6Z78I5F/4LuJUZpWsWPijMeFM8/sdMp9z34zz1/9AGjkFuwXAWD2yToPSunRCEUsNIfYdq9oV8gfcFQi5YZs2dFmbbFgHa6ZdcjYMUkSXaVtvyCjHnrGh/JdVsLOnx6CtVSvyPeScdE0ONaDOCMBTrdToJv7oWrCC3gUXCqB/hdDmLKeXCTr8WPciBbTVgF/j2+FKqomkPIs/1cuCDfNuWrFWFsVEFzilOxT1DDSmG4+iDmRm7iBqdCHfFZBD3hUQlXd9UrVGJ6ovsb9n58Iyw/LlG4M+Mh5oPQSX9SuXU2DfNX7OYvHKZPFDIrCBd8McCJ4DQ2H6P6qvBZ1FxTC8f70C+SC68NpcLAaK62uiZj4kFkD6CvaARwGc/cC/BozY7LOH/aPWq9y+8zAB1Z5TziDJ/FBAW0r6LHTQbRBsCVPSHEsQ3yjzZxp66uhYWJEToog/xVXQ4tBq9b69QIL0gxDCzTtkQySdj+Ib3c3B6y8O08tzhmmCV0LA1vARNAJrE1xwSTzSJLO2y6pl7/RiuDnXjshm0mFK/+cWGEt96gFoB8EifHsUEQN4EMql0qFklyYwKnR6NTPkROlwXWLY4TDLTzH1fw08gDsFLFoKkZmete9AReG8sY2HONO9VKzvEA9hUumIKrjUIwV02EdJwzGum3xaHBEHyqk8sdB5b6ixJqlLdaPm56rScfmJJ1iYuSGqoS3pW8WqXbKTFlIMG1D68fyxbnaxarRDDVeMg/ASugsZx7njco74x3DzKSlOLUXZMoFDEfR1d/ZCJWKaYAm9NNiI34Nqm0SahUp4= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2017 13:39:03.8801 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2549 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 While at it, change the type of the previously always-zero i2c_rc member to int, matching the returned type from i2c_add_adapter. Signed-off-by: Peter Rosin --- drivers/media/usb/cx231xx/cx231xx-i2c.c | 2 +- drivers/media/usb/cx231xx/cx231xx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-i2c.c b/drivers/media/usb/cx231xx/cx231xx-i2c.c index 8d95b1154e12..3a0c45ffd40f 100644 --- a/drivers/media/usb/cx231xx/cx231xx-i2c.c +++ b/drivers/media/usb/cx231xx/cx231xx-i2c.c @@ -538,7 +538,7 @@ int cx231xx_i2c_register(struct cx231xx_i2c *bus) bus->i2c_adap.algo_data = bus; i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); - i2c_add_adapter(&bus->i2c_adap); + bus->i2c_rc = i2c_add_adapter(&bus->i2c_adap); if (0 != bus->i2c_rc) dev_warn(dev->dev, diff --git a/drivers/media/usb/cx231xx/cx231xx.h b/drivers/media/usb/cx231xx/cx231xx.h index 986c64ba5b56..27ee035f9f84 100644 --- a/drivers/media/usb/cx231xx/cx231xx.h +++ b/drivers/media/usb/cx231xx/cx231xx.h @@ -476,7 +476,7 @@ struct cx231xx_i2c { /* i2c i/o */ struct i2c_adapter i2c_adap; - u32 i2c_rc; + int i2c_rc; /* different settings for each bus */ u8 i2c_period;