aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2011-12-19 16:37:59 +0100
committerFlorian Tobias Schandinat <[email protected]>2011-12-21 02:24:30 +0000
commit396fa99e0e58198f400110f2b6432b5b6522476b (patch)
tree985cd34e74e1fedbc484215fa1d1249bbb05ab91
parent0d89a28b2285875ccf574e95b6318ca4efcabf3b (diff)
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 <[email protected]> Cc: Wolfgang Denk <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Huang Shijie <[email protected]> Acked-by: Axel Lin <[email protected]> Acked-by: Sascha Hauer <[email protected]> Acked-by: Shawn Guo <[email protected]> Signed-off-by: Florian Tobias Schandinat <[email protected]>
-rw-r--r--drivers/video/mxsfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 18742c26463b..d29c7c06ea7b 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");