From patchwork Sun Jun 4 09:18:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9764733 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 EDC8960392 for ; Sun, 4 Jun 2017 09:20:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E24D727F9F for ; Sun, 4 Jun 2017 09:20:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6EA428437; Sun, 4 Jun 2017 09:20:37 +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 656BF28417 for ; Sun, 4 Jun 2017 09:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751308AbdFDJUf (ORCPT ); Sun, 4 Jun 2017 05:20:35 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:65231 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbdFDJUP (ORCPT ); Sun, 4 Jun 2017 05:20:15 -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 v549K7X0011194; Sun, 4 Jun 2017 04:20:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496568007; bh=KhEvdWm86mYcvptX6e9Eh1d34KjhaP5cSodOi19yjNY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=l39qGxJXvPCHx8MRelPsFGoospDGJ8ZMyW4qxLh05vTQfeVgkE2sH1fJ+YrXjHybC 0X35pjNiiTd2MPyvzPQaNqXmyygzVuFWPT1PujnUiMVuYi4Vf7/nBErfGPOtZ2ZWqq pExbU76TcfDoTyREt0OELeu8NaBsma9dIosq51m4= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v549K6Od006088; Sun, 4 Jun 2017 04:20:06 -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:20:06 -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 v549J1F9009261; Sun, 4 Jun 2017 04:20:01 -0500 From: Keerthy To: , , CC: , , Subject: [PATCH 8/9] mfd: tps65090: Remove redundant i2c_device_id Date: Sun, 4 Jun 2017 14:48:43 +0530 Message-ID: <1496567924-4278-9-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/tps65090.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index d7ec318..200a9c8 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -174,8 +174,7 @@ static bool is_volatile_reg(struct device *dev, unsigned int reg) MODULE_DEVICE_TABLE(of, tps65090_of_match); #endif -static int tps65090_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps65090_i2c_probe(struct i2c_client *client) { struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev); int irq_base = 0; @@ -249,20 +248,13 @@ static int tps65090_i2c_remove(struct i2c_client *client) return 0; } -static const struct i2c_device_id tps65090_id_table[] = { - { "tps65090", 0 }, - { }, -}; -MODULE_DEVICE_TABLE(i2c, tps65090_id_table); - static struct i2c_driver tps65090_driver = { .driver = { .name = "tps65090", .of_match_table = of_match_ptr(tps65090_of_match), }, - .probe = tps65090_i2c_probe, + .probe_new = tps65090_i2c_probe, .remove = tps65090_i2c_remove, - .id_table = tps65090_id_table, }; static int __init tps65090_init(void)