Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp58262ybl; Wed, 11 Dec 2019 14:00:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxXbjf63qfHSK46s6aBQsyCAXtcofDmdMqnGSLUOVIe0WBAyErOrXwnYb1FqGj/NE/a83Mc X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr4102430otp.184.1576101601075; Wed, 11 Dec 2019 14:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576101601; cv=none; d=google.com; s=arc-20160816; b=jAgosGWVUfzYgFVuc7Z2LBV0xd/So81Y1++K83jJKFz02EKyV4/2HvrD2WLylY6ccj AxeHCPdhg4BbytBU5tvDDWLNd+nrOgamLhaPFa9mrTgfsYJkT6VjuqWGvPbvdjjSubFi ymt2F8ds7uIh97RefT58cUPH5J8r1dxX97X8oYwmUlJtrTOmrGWA03zTOHWdW7XXRQf0 rnXOU0xvwYvyYRLDmKHThPA6zKmloBLj7W9DE6aymujGBMRfqTwYhoXbF6nQYz98P6+j iGY4Z0v51WC6Coo4zg1WEfwpTc6bYkTRZeIjnkRTsT8e1DWk8rCgvf0996GAgcuGgLU3 R0NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vyPYuKP4nBZWwRtmxSe5elUv8cYRbdETpDEHXZisMr8=; b=syzQnNT8yK8uu3GcirfC48vkr5YtwQhypLJvMpYGh9nbAa/Qa0lW6uVmrrCUr9LO6C WFbJ0uUzLarDr8YSvYogwO7kZ4MnerdB1dawMeVzsO6sSPJrGnRd+qOwHWPVh37KsfNM xAsBl636iCfigrJ0gnZOOIbQzxxJgAfHKGodrk5FcDGnHZWP/eFWplOsT148EBD4Inge 6aiDOmzmF2BBGXQQHQJrsNWbW6oVDEJ27JjMaf2io0ldxYI6yJu9UPGo3an16lko8+I2 pbRnTwLTrK981kmprgpV5DbN61qTyq9/4OXbpXJy7AG2a6NlBvMFEsSSFRtGcrjxRLw5 MvIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=cH68ixxC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g126si2001159oib.105.2019.12.11.13.59.46; Wed, 11 Dec 2019 14:00:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=cH68ixxC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbfLKV5h (ORCPT + 99 others); Wed, 11 Dec 2019 16:57:37 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:41540 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfLKV5g (ORCPT ); Wed, 11 Dec 2019 16:57:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vyPYuKP4nBZWwRtmxSe5elUv8cYRbdETpDEHXZisMr8=; b=cH68ixxC4aHnX4hnIZCm+faQ/e CCufRSSS0KY68o8eLy0HnYIeoSqSOdExYCI/wYAm1Um6dOAT/3WAp2BXG+LutniBpSqLiiUU0WqOT Y+mnchjpaIaVBMd4YmkERWK6AbOcpUaMbc1v2TaZzIZgdLpYy83ojZsL14JBj/uRZzYs=; Received: from p200300ccff0c6f001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0c:6f00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1if9zC-0002HF-Vg; Wed, 11 Dec 2019 22:57:35 +0100 Received: from andi by aktux with local (Exim 4.92) (envelope-from ) id 1if9zC-00052q-JM; Wed, 11 Dec 2019 22:57:34 +0100 From: Andreas Kemnade To: lee.jones@linaro.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH] mfd: rn5t618: cleanup i2c_device_id Date: Wed, 11 Dec 2019 22:57:31 +0100 Message-Id: <20191211215731.19350-1-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That list was just empty, so it can be removed if .probe_new instead of .probe is used Suggested-by: Lee Jones Signed-off-by: Andreas Kemnade --- drivers/mfd/rn5t618.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index 18d56a732b20..70d52b46ee8a 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -150,8 +150,7 @@ static const struct of_device_id rn5t618_of_match[] = { }; MODULE_DEVICE_TABLE(of, rn5t618_of_match); -static int rn5t618_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int rn5t618_i2c_probe(struct i2c_client *i2c) { const struct of_device_id *of_id; struct rn5t618 *priv; @@ -251,11 +250,6 @@ static int __maybe_unused rn5t618_i2c_resume(struct device *dev) return 0; } -static const struct i2c_device_id rn5t618_i2c_id[] = { - { } -}; -MODULE_DEVICE_TABLE(i2c, rn5t618_i2c_id); - static SIMPLE_DEV_PM_OPS(rn5t618_i2c_dev_pm_ops, rn5t618_i2c_suspend, rn5t618_i2c_resume); @@ -266,9 +260,8 @@ static struct i2c_driver rn5t618_i2c_driver = { .of_match_table = of_match_ptr(rn5t618_of_match), .pm = &rn5t618_i2c_dev_pm_ops, }, - .probe = rn5t618_i2c_probe, + .probe_new = rn5t618_i2c_probe, .remove = rn5t618_i2c_remove, - .id_table = rn5t618_i2c_id, }; module_i2c_driver(rn5t618_i2c_driver); -- 2.20.1