Message ID | 20240902115848.904227-1-liaochen4@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] gpio: modepin: Enable module autoloading | expand |
On 9/2/24 13:58, Liao Chen wrote: > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based > on the alias from of_device_id table. > > Signed-off-by: Liao Chen <liaochen4@huawei.com> > --- > drivers/gpio/gpio-zynqmp-modepin.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpio-zynqmp-modepin.c b/drivers/gpio/gpio-zynqmp-modepin.c > index a0d69387c153..2f3c9ebfa78d 100644 > --- a/drivers/gpio/gpio-zynqmp-modepin.c > +++ b/drivers/gpio/gpio-zynqmp-modepin.c > @@ -146,6 +146,7 @@ static const struct of_device_id modepin_platform_id[] = { > { .compatible = "xlnx,zynqmp-gpio-modepin", }, > { } > }; > +MODULE_DEVICE_TABLE(of, modepin_platform_id); > > static struct platform_driver modepin_platform_driver = { > .driver = { I did the same change internally some day ago but didn't send it. Reviewed-by: Michal Simek <michal.simek@amd.com> Thanks, Michal
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Mon, 02 Sep 2024 11:58:48 +0000, Liao Chen wrote: > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based > on the alias from of_device_id table. > > Applied, thanks! [1/1] gpio: modepin: Enable module autoloading commit: a5135526426df5319d5f4bcd15ae57c45a97714b Best regards,
On Mon, Sep 2, 2024 at 3:01 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > On Mon, 02 Sep 2024 11:58:48 +0000, Liao Chen wrote: > > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based > > on the alias from of_device_id table. > > > > > > Applied, thanks! > > [1/1] gpio: modepin: Enable module autoloading > commit: a5135526426df5319d5f4bcd15ae57c45a97714b > > Best regards, > -- > Bartosz Golaszewski <bartosz.golaszewski@linaro.org> I also added the Fixes tag. Bart
diff --git a/drivers/gpio/gpio-zynqmp-modepin.c b/drivers/gpio/gpio-zynqmp-modepin.c index a0d69387c153..2f3c9ebfa78d 100644 --- a/drivers/gpio/gpio-zynqmp-modepin.c +++ b/drivers/gpio/gpio-zynqmp-modepin.c @@ -146,6 +146,7 @@ static const struct of_device_id modepin_platform_id[] = { { .compatible = "xlnx,zynqmp-gpio-modepin", }, { } }; +MODULE_DEVICE_TABLE(of, modepin_platform_id); static struct platform_driver modepin_platform_driver = { .driver = {
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <liaochen4@huawei.com> --- drivers/gpio/gpio-zynqmp-modepin.c | 1 + 1 file changed, 1 insertion(+)