Message ID | c1b214f88840309c0d05162d59f666c0f7375b95.1582913973.git.hns@goldelico.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | MIPS: CI20: add HDMI out support | expand |
Hi Nikolaus, Le ven., févr. 28, 2020 at 19:19, H. Nikolaus Schaller <hns@goldelico.com> a écrit : > so that the driver can load by matching the device tree > if compiled as module. > > Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> > --- > drivers/gpu/drm/ingenic/ingenic-drm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c > b/drivers/gpu/drm/ingenic/ingenic-drm.c > index 6d47ef7b148c..d8617096dd8e 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-drm.c > +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c > @@ -844,6 +844,8 @@ static const struct of_device_id > ingenic_drm_of_match[] = { > { /* sentinel */ }, > }; > > +MODULE_DEVICE_TABLE(of, ingenic_drm_of_match); Please remove the blank line above the MODULE_DEVICE_TABLE() macro. -Paul > + > static struct platform_driver ingenic_drm_driver = { > .driver = { > .name = "ingenic-drm", > -- > 2.23.0 >
> Am 02.03.2020 um 20:21 schrieb Paul Cercueil <paul@crapouillou.net>: > > Hi Nikolaus, > > > Le ven., févr. 28, 2020 at 19:19, H. Nikolaus Schaller <hns@goldelico.com> a écrit : >> so that the driver can load by matching the device tree >> if compiled as module. >> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> >> --- >> drivers/gpu/drm/ingenic/ingenic-drm.c | 2 ++ >> 1 file changed, 2 insertions(+) >> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c >> index 6d47ef7b148c..d8617096dd8e 100644 >> --- a/drivers/gpu/drm/ingenic/ingenic-drm.c >> +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c >> @@ -844,6 +844,8 @@ static const struct of_device_id ingenic_drm_of_match[] = { >> { /* sentinel */ }, >> }; >> +MODULE_DEVICE_TABLE(of, ingenic_drm_of_match); > > Please remove the blank line above the MODULE_DEVICE_TABLE() macro. Ok. > > -Paul > >> + >> static struct platform_driver ingenic_drm_driver = { >> .driver = { >> .name = "ingenic-drm", >> -- >> 2.23.0 > >
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index 6d47ef7b148c..d8617096dd8e 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c @@ -844,6 +844,8 @@ static const struct of_device_id ingenic_drm_of_match[] = { { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, ingenic_drm_of_match); + static struct platform_driver ingenic_drm_driver = { .driver = { .name = "ingenic-drm",
so that the driver can load by matching the device tree if compiled as module. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> --- drivers/gpu/drm/ingenic/ingenic-drm.c | 2 ++ 1 file changed, 2 insertions(+)