From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758135AbcAKGIk (ORCPT ); Mon, 11 Jan 2016 01:08:40 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38039 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbcAKGIi (ORCPT ); Mon, 11 Jan 2016 01:08:38 -0500 Date: Mon, 11 Jan 2016 06:08:34 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: devicetree@vger.kernel.org, jingoohan1@gmail.com, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] backlight: tps65217_bl: Add MODULE_DEVICE_TABLE. Message-ID: <20160111060834.GM3331@x1> References: <1448814586-17117-1-git-send-email-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1448814586-17117-1-git-send-email-enric.balletbo@collabora.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 Sun, 29 Nov 2015, Enric Balletbo i Serra wrote: > The device table is required to load modules based on modaliases. > > Signed-off-by: Enric Balletbo i Serra > --- > Changes since last version: > - Use of_match_ptr (Lee Jones) > > drivers/video/backlight/tps65217_bl.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Applied, thanks. > diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c > index 61d72bf..fd524ad 100644 > --- a/drivers/video/backlight/tps65217_bl.c > +++ b/drivers/video/backlight/tps65217_bl.c > @@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev) > return 0; > } > > +#ifdef CONFIG_OF > +static const struct of_device_id tps65217_bl_of_match[] = { > + { .compatible = "ti,tps65217-bl", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, tps65217_bl_of_match); > +#endif > + > static struct platform_driver tps65217_bl_driver = { > .probe = tps65217_bl_probe, > .driver = { > .name = "tps65217-bl", > + .of_match_table = of_match_ptr(tps65217_bl_of_match), > }, > }; > -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog