From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbcF1RGD (ORCPT ); Tue, 28 Jun 2016 13:06:03 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36437 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752060AbcF1RFg (ORCPT ); Tue, 28 Jun 2016 13:05:36 -0400 Date: Tue, 28 Jun 2016 10:04:41 -0700 From: Dmitry Torokhov To: Keerthy Cc: linus.walleij@linaro.org, gnurou@gmail.com, lee.jones@linaro.org, broonie@kernel.org, tony@atomide.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 3/6] input: tps65218-pwrbutton: Add platform_device_id table Message-ID: <20160628170441.GA13114@dtor-ws> References: <1467117054-12943-1-git-send-email-j-keerthy@ti.com> <1467117054-12943-4-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467117054-12943-4-git-send-email-j-keerthy@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 28, 2016 at 06:00:51PM +0530, Keerthy wrote: > platform_device_id table is needed for adding the tps65218-pwrbutton > module to the mfd_cell array. > > Signed-off-by: Keerthy Acked-by: Dmitry Torokhov > --- > > Changes in v4: > > * Added the missing ';' for struct platform_device_id. > > drivers/input/misc/tps65218-pwrbutton.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/input/misc/tps65218-pwrbutton.c b/drivers/input/misc/tps65218-pwrbutton.c > index 2bba8de..33d141a 100644 > --- a/drivers/input/misc/tps65218-pwrbutton.c > +++ b/drivers/input/misc/tps65218-pwrbutton.c > @@ -113,12 +113,19 @@ static const struct of_device_id of_tps65218_pwr_match[] = { > }; > MODULE_DEVICE_TABLE(of, of_tps65218_pwr_match); > > +static const struct platform_device_id tps65218_pwrbtn_id_table[] = { > + { "tps65218-pwrbutton", }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(platform, tps65218_pwrbtn_id_table); > + > static struct platform_driver tps65218_pwron_driver = { > .probe = tps65218_pwron_probe, > .driver = { > .name = "tps65218_pwrbutton", > .of_match_table = of_tps65218_pwr_match, > }, > + .id_table = tps65218_pwrbtn_id_table, > }; > module_platform_driver(tps65218_pwron_driver); > > -- > 1.9.1 > -- Dmitry