From patchwork Sun Jun 4 09:18:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9764743 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 16FE560392 for ; Sun, 4 Jun 2017 09:21:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B02427F9F for ; Sun, 4 Jun 2017 09:21:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F40EF28426; Sun, 4 Jun 2017 09:21:09 +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 9F16928417 for ; Sun, 4 Jun 2017 09:21:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbdFDJVE (ORCPT ); Sun, 4 Jun 2017 05:21:04 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:42049 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbdFDJU7 (ORCPT ); Sun, 4 Jun 2017 05:20:59 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v549KGBf000840; Sun, 4 Jun 2017 04:20:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496568016; bh=iJ5IQ+yOFnJ4vSI0BQyUZDkhy3D8PCRrRnthDc3cDjQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NoR+Dwrv3/wp9SsDN0k44RGhDVK1Cd/fJUvCIlkloZ6yuYJU/sMxSq+lSs/xUivoG eFogunyVVk7+Dh75yWK4anfQpr+wO7k2QOk73BNbwZP6Qn4l2EyLwZczZAIu5FehGp Yw9zM130WHmMT2YqGcG/E3gzgPZ6b+2NjvtLnGtU= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v549KBZP024995; Sun, 4 Jun 2017 04:20:11 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Sun, 4 Jun 2017 04:20:11 -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 v549J1FA009261; Sun, 4 Jun 2017 04:20:07 -0500 From: Keerthy To: , , CC: , , Subject: [PATCH 9/9] mfd: tps6586x: Remove redundant i2c_device_id Date: Sun, 4 Jun 2017 14:48:44 +0530 Message-ID: <1496567924-4278-10-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/tps6586x.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index 5628a6b..5572cf6 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -503,8 +503,7 @@ static void tps6586x_print_version(struct i2c_client *client, int version) dev_info(&client->dev, "Found %s, VERSIONCRC is %02x\n", name, version); } -static int tps6586x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps6586x_i2c_probe(struct i2c_client *client) { struct tps6586x_platform_data *pdata = dev_get_platdata(&client->dev); struct tps6586x *tps6586x; @@ -594,20 +593,13 @@ static int tps6586x_i2c_remove(struct i2c_client *client) return 0; } -static const struct i2c_device_id tps6586x_id_table[] = { - { "tps6586x", 0 }, - { }, -}; -MODULE_DEVICE_TABLE(i2c, tps6586x_id_table); - static struct i2c_driver tps6586x_driver = { .driver = { .name = "tps6586x", .of_match_table = of_match_ptr(tps6586x_of_match), }, - .probe = tps6586x_i2c_probe, + .probe_new = tps6586x_i2c_probe, .remove = tps6586x_i2c_remove, - .id_table = tps6586x_id_table, }; static int __init tps6586x_init(void)