From 396fa99e0e58198f400110f2b6432b5b6522476b Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 19 Dec 2011 16:37:59 +0100 Subject: [PATCH] MXSFB: Fix driver registration The driver should be registered with mxsfb_driver, not with mxsfb_devtype. This caused obvious null pointer dereference and crash. Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Stefano Babic Cc: Huang Shijie Acked-by: Axel Lin Acked-by: Sascha Hauer Acked-by: Shawn Guo Signed-off-by: Florian Tobias Schandinat --- drivers/video/mxsfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 18742c26463..d29c7c06ea7 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -902,7 +902,7 @@ static struct platform_driver mxsfb_driver = { }, }; -module_platform_driver(mxsfb_devtype); +module_platform_driver(mxsfb_driver); MODULE_DESCRIPTION("Freescale mxs framebuffer driver"); MODULE_AUTHOR("Sascha Hauer, Pengutronix"); -- 2.39.5