diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-12-19 10:37:59 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-12-20 21:24:30 -0500 |
commit | 396fa99e0e58198f400110f2b6432b5b6522476b (patch) | |
tree | 985cd34e74e1fedbc484215fa1d1249bbb05ab91 /drivers/video/mxsfb.c | |
parent | 0d89a28b2285875ccf574e95b6318ca4efcabf3b (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 <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Huang Shijie <b32955@freescale.com>
Acked-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/mxsfb.c')
-rw-r--r-- | drivers/video/mxsfb.c | 2 |
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 = { | |||
902 | }, | 902 | }, |
903 | }; | 903 | }; |
904 | 904 | ||
905 | module_platform_driver(mxsfb_devtype); | 905 | module_platform_driver(mxsfb_driver); |
906 | 906 | ||
907 | MODULE_DESCRIPTION("Freescale mxs framebuffer driver"); | 907 | MODULE_DESCRIPTION("Freescale mxs framebuffer driver"); |
908 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); | 908 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); |