From patchwork Sun Jun 4 09:18:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9764721 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 B3FDD601D7 for ; Sun, 4 Jun 2017 09:20:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A650328417 for ; Sun, 4 Jun 2017 09:20:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B2B628426; Sun, 4 Jun 2017 09:20:02 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 226AD28433 for ; Sun, 4 Jun 2017 09:20:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751245AbdFDJT5 (ORCPT ); Sun, 4 Jun 2017 05:19:57 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:65226 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbdFDJTy (ORCPT ); Sun, 4 Jun 2017 05:19:54 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v549JpYr011160; Sun, 4 Jun 2017 04:19:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496567991; bh=oA7pY+JU4SMcTe6XrGD2+iZT5oPWmYDYIwLFlL7CgAs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=o1MSUaG6yWiRqaHSHuTPlfaIlDRFmhYb9ckiuu5Xxp0FTl7D9jsP8SBr1sEjXpTRr ookP7dc8+AKajD9dyr+lE2xd9/iwc+MCPBeT3M5VS7k78fkF4ZEcr6222YKcpsONyF RPh1dcx2pkHO+tzgPhiKUAVuUyZBq6GFN/Bc5ZU8= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v549Jprk005525; Sun, 4 Jun 2017 04:19:51 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Sun, 4 Jun 2017 04:19:51 -0500 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v549J1F7009261; Sun, 4 Jun 2017 04:19:46 -0500 From: Keerthy To: , , CC: , , Subject: [PATCH 6/9] mfd: lp3943: Remove redundant i2c_device_id Date: Sun, 4 Jun 2017 14:48:41 +0530 Message-ID: <1496567924-4278-7-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496567924-4278-1-git-send-email-j-keerthy@ti.com> References: <1496567924-4278-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With the introduction of probe_new function the i2c_device_id is no longer needed. Hence the remove the same and use probe_new instead of probe. Signed-off-by: Keerthy --- Compile tested. drivers/mfd/lp3943.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/lp3943.c b/drivers/mfd/lp3943.c index 65a2a8f1..84ec685 100644 --- a/drivers/mfd/lp3943.c +++ b/drivers/mfd/lp3943.c @@ -105,7 +105,7 @@ int lp3943_update_bits(struct lp3943 *lp3943, u8 reg, u8 mask, u8 data) .max_register = LP3943_MAX_REGISTERS, }; -static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp3943_probe(struct i2c_client *cl) { struct lp3943 *lp3943; struct device *dev = &cl->dev; @@ -128,12 +128,6 @@ static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id) NULL, 0, NULL); } -static const struct i2c_device_id lp3943_ids[] = { - { "lp3943", 0 }, - { } -}; -MODULE_DEVICE_TABLE(i2c, lp3943_ids); - #ifdef CONFIG_OF static const struct of_device_id lp3943_of_match[] = { { .compatible = "ti,lp3943", }, @@ -143,12 +137,11 @@ static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id) #endif static struct i2c_driver lp3943_driver = { - .probe = lp3943_probe, + .probe_new = lp3943_probe, .driver = { .name = "lp3943", .of_match_table = of_match_ptr(lp3943_of_match), }, - .id_table = lp3943_ids, }; module_i2c_driver(lp3943_driver);