From patchwork Sun Jun 4 09:18:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9764717 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 37D19601D7 for ; Sun, 4 Jun 2017 09:19:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B3E422B26 for ; Sun, 4 Jun 2017 09:19:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2020924B44; Sun, 4 Jun 2017 09:19:50 +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 94EF922B26 for ; Sun, 4 Jun 2017 09:19:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbdFDJTs (ORCPT ); Sun, 4 Jun 2017 05:19:48 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:18497 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbdFDJTr (ORCPT ); Sun, 4 Jun 2017 05:19:47 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v549JdNs000348; Sun, 4 Jun 2017 04:19:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496567979; bh=c76FlVpjN/b3gPY0OCGWYVxiwvZzZbxxD137xjdX5aQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OZcyngu2CvhVBqCJG5/PR2GWIDTzAt/7gdvM8LIPtjXkyc3dmossoqliR3sFcANcP PBekV9YzssInriw06oTcfnzvJx9au5w+tse3c5LRfdGJMFa1AvuOVcEG/H6VmOdNAr IZhDidEzXfBlg7Ul83LdLQu0yzWOL4McSerPUmsA= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v549JdhD024379; Sun, 4 Jun 2017 04:19:39 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Sun, 4 Jun 2017 04:19:38 -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 v549J1F5009261; Sun, 4 Jun 2017 04:19:34 -0500 From: Keerthy To: , , CC: , , Subject: [PATCH 4/9] mfd: lp873x: Remove redundant i2c_device_id Date: Sun, 4 Jun 2017 14:48:39 +0530 Message-ID: <1496567924-4278-5-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 --- Boot tested on dra71-evm and checked for regulator registrations. drivers/mfd/lp873x.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/lp873x.c b/drivers/mfd/lp873x.c index 873c608..47be6b8 100644 --- a/drivers/mfd/lp873x.c +++ b/drivers/mfd/lp873x.c @@ -32,8 +32,7 @@ { .name = "lp873x-gpio", }, }; -static int lp873x_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int lp873x_probe(struct i2c_client *client) { struct lp873x *lp873; int ret; @@ -76,19 +75,12 @@ static int lp873x_probe(struct i2c_client *client, }; MODULE_DEVICE_TABLE(of, of_lp873x_match_table); -static const struct i2c_device_id lp873x_id_table[] = { - { "lp873x", 0 }, - { }, -}; -MODULE_DEVICE_TABLE(i2c, lp873x_id_table); - static struct i2c_driver lp873x_driver = { .driver = { .name = "lp873x", .of_match_table = of_lp873x_match_table, }, - .probe = lp873x_probe, - .id_table = lp873x_id_table, + .probe_new = lp873x_probe, }; module_i2c_driver(lp873x_driver);