Skip to content

Commit

Permalink
MXSFB: Fix driver registration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Florian Tobias Schandinat committed Dec 21, 2011
1 parent 0d89a28 commit 396fa99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/mxsfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 396fa99

Please sign in to comment.