[PATCH] drm/mxsfb: rename driver to mxsfb-drm

Stefan Agner stefan at agner.ch
Tue Jun 12 14:35:57 UTC 2018


There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver
fails:
  mxs-dma 33000000.dma-apbh: initialized
  mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator
  mxsfb 30730000.lcdif: initialized
  Error: Driver 'mxsfb' is already registered, aborting...

Avoid driver name conflict with MXS fbdev driver by renaming the
more recently added DRM driver.

Signed-off-by: Stefan Agner <stefan at agner.ch>
---
 drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
index 5cae8db9dcd4..db2935797428 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
@@ -424,7 +424,7 @@ static struct platform_driver mxsfb_platform_driver = {
 	.remove		= mxsfb_remove,
 	.id_table	= mxsfb_devtype,
 	.driver	= {
-		.name		= "mxsfb",
+		.name		= "mxsfb-drm",
 		.of_match_table	= mxsfb_dt_ids,
 	},
 };
-- 
2.17.1



More information about the dri-devel mailing list