diff mbox series

drm/bridge: cdns-dsi: Make sure to to create proper aliases for dt

Message ID 20210921174059.17946-1-nm@ti.com (mailing list archive)
State New, archived
Headers show
Series drm/bridge: cdns-dsi: Make sure to to create proper aliases for dt | expand

Commit Message

Nishanth Menon Sept. 21, 2021, 5:40 p.m. UTC
Add MODULE_DEVICE_TABLE to the device tree table to create required
aliases needed for module to be loaded with device tree based platform.

Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver")
Signed-off-by: Nishanth Menon <nm@ti.com>
---
 drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Nishanth Menon Nov. 9, 2021, 2:55 p.m. UTC | #1
On 12:40-20210921, Nishanth Menon wrote:
> Add MODULE_DEVICE_TABLE to the device tree table to create required
> aliases needed for module to be loaded with device tree based platform.
> 
> Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver")
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>  drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
> index d8a15c459b42..829e1a144656 100644
> --- a/drivers/gpu/drm/bridge/cdns-dsi.c
> +++ b/drivers/gpu/drm/bridge/cdns-dsi.c
> @@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
>  	{ .compatible = "cdns,dsi" },
>  	{ },
>  };
> +MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
>  
>  static struct platform_driver cdns_dsi_platform_driver = {
>  	.probe  = cdns_dsi_drm_probe,
> -- 
> 2.32.0
> 
> 

Hi, Ping?
Tomi Valkeinen Nov. 10, 2021, 7:12 a.m. UTC | #2
On 09/11/2021 16:55, Nishanth Menon wrote:
> On 12:40-20210921, Nishanth Menon wrote:
>> Add MODULE_DEVICE_TABLE to the device tree table to create required
>> aliases needed for module to be loaded with device tree based platform.
>>
>> Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver")
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>>   drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
>> index d8a15c459b42..829e1a144656 100644
>> --- a/drivers/gpu/drm/bridge/cdns-dsi.c
>> +++ b/drivers/gpu/drm/bridge/cdns-dsi.c
>> @@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
>>   	{ .compatible = "cdns,dsi" },
>>   	{ },
>>   };
>> +MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
>>   
>>   static struct platform_driver cdns_dsi_platform_driver = {
>>   	.probe  = cdns_dsi_drm_probe,
>> -- 
>> 2.32.0
>>
>>
> 
> Hi, Ping?
> 

Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>

  Tomi
Laurent Pinchart Nov. 10, 2021, 8:59 a.m. UTC | #3
Hi Nishanth,

Thank you for the patch, and sorry for the late reply.

On Tue, Nov 09, 2021 at 08:55:38AM -0600, Nishanth Menon wrote:
> On 12:40-20210921, Nishanth Menon wrote:
> > Add MODULE_DEVICE_TABLE to the device tree table to create required
> > aliases needed for module to be loaded with device tree based platform.
> > 
> > Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver")
> > Signed-off-by: Nishanth Menon <nm@ti.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> > ---
> >  drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
> > index d8a15c459b42..829e1a144656 100644
> > --- a/drivers/gpu/drm/bridge/cdns-dsi.c
> > +++ b/drivers/gpu/drm/bridge/cdns-dsi.c
> > @@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
> >  	{ .compatible = "cdns,dsi" },
> >  	{ },
> >  };
> > +MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
> >  
> >  static struct platform_driver cdns_dsi_platform_driver = {
> >  	.probe  = cdns_dsi_drm_probe,
Tomi Valkeinen Feb. 28, 2022, 9:39 a.m. UTC | #4
On 09/11/2021 16:55, Nishanth Menon wrote:
> On 12:40-20210921, Nishanth Menon wrote:
>> Add MODULE_DEVICE_TABLE to the device tree table to create required
>> aliases needed for module to be loaded with device tree based platform.
>>
>> Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver")
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>>   drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
>> index d8a15c459b42..829e1a144656 100644
>> --- a/drivers/gpu/drm/bridge/cdns-dsi.c
>> +++ b/drivers/gpu/drm/bridge/cdns-dsi.c
>> @@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
>>   	{ .compatible = "cdns,dsi" },
>>   	{ },
>>   };
>> +MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
>>   
>>   static struct platform_driver cdns_dsi_platform_driver = {
>>   	.probe  = cdns_dsi_drm_probe,
>> -- 
>> 2.32.0
>>
>>
> 
> Hi, Ping?

Thanks, I'll apply to drm-misc-next.

  Tomi
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
index d8a15c459b42..829e1a144656 100644
--- a/drivers/gpu/drm/bridge/cdns-dsi.c
+++ b/drivers/gpu/drm/bridge/cdns-dsi.c
@@ -1284,6 +1284,7 @@  static const struct of_device_id cdns_dsi_of_match[] = {
 	{ .compatible = "cdns,dsi" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
 static struct platform_driver cdns_dsi_platform_driver = {
 	.probe  = cdns_dsi_drm_probe,