From patchwork Fri May 24 11:25:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 18508 X-Patchwork-Delegate: g.liakhovetski@gmx.de Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1UfqKr-0006BK-0V; Fri, 24 May 2013 13:39:01 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-7) with esmtp id 1UfqKo-0002mj-1W; Fri, 24 May 2013 13:39:00 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633Ab3EXLi4 (ORCPT + 1 other); Fri, 24 May 2013 07:38:56 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:58708 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933Ab3EXLiz (ORCPT ); Fri, 24 May 2013 07:38:55 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl12so749288pab.20 for ; Fri, 24 May 2013 04:38:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=rZ0BbjH5EcdFJuN+c8dyRn0j6yfPt9F7xytMKK7ADeY=; b=lIDQghwmyQVGEFHJNPAz/McNCnYhiZ4ErlBn85hLb0xttp7PrM2gxSPsn6RuK+jh53 0A8uu9R7r4XWHQFZA7l6QyAzfsapYPdpRvim47LHJdi8ZWe1Ah6pPsLRuXmUOk42CC9y wnJPWCToxUjs8n7T+n2srSpPKFs7qEoScxy7gzlrPgUbUBLGCr4UKaiYidNyOnQRNMJK IuHK6VMjH6GtAiREAfjSy4Cgq2yQjeDwUFbHJxVHj19oD5vOymjzRLSwHOIC/XOTsBZB Kx6coaDEFMgKL++CpaPkeQvrRfdQiKt2N1EmBGJqdy5MKfcoRakVZaeH5IM0jPHzCLwk 6VTA== X-Received: by 10.66.216.136 with SMTP id oq8mr17596221pac.161.1369395535355; Fri, 24 May 2013 04:38:55 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id j10sm15897028pbh.23.2013.05.24.04.38.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 May 2013 04:38:54 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: g.liakhovetski@gmx.de, sachin.kamat@linaro.org, Kuninori Morimoto Subject: [PATCH 1/2] [media] soc_camera: mt9t112: Remove empty function Date: Fri, 24 May 2013 16:55:06 +0530 Message-Id: <1369394707-13049-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlsl4d4dC5MaSzuTx6sU5fw2fi5c58epehj2APx38HV4Q53q1P5Nr5S94ALVcHjq+10lsyr Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.5.24.112415 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1100_1199 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' After the switch to devm_* functions, the 'remove' function does not do anything. Delete it. Signed-off-by: Sachin Kamat Cc: Kuninori Morimoto --- drivers/media/i2c/soc_camera/mt9t112.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/media/i2c/soc_camera/mt9t112.c b/drivers/media/i2c/soc_camera/mt9t112.c index a7256b7..0af29a4 100644 --- a/drivers/media/i2c/soc_camera/mt9t112.c +++ b/drivers/media/i2c/soc_camera/mt9t112.c @@ -1118,11 +1118,6 @@ static int mt9t112_probe(struct i2c_client *client, return ret; } -static int mt9t112_remove(struct i2c_client *client) -{ - return 0; -} - static const struct i2c_device_id mt9t112_id[] = { { "mt9t112", 0 }, { } @@ -1134,7 +1129,6 @@ static struct i2c_driver mt9t112_i2c_driver = { .name = "mt9t112", }, .probe = mt9t112_probe, - .remove = mt9t112_remove, .id_table = mt9t112_id, };