Skip to content

Commit

Permalink
drivers/video/s1d13xxxfb.c: fix build as module with dbg
Browse files Browse the repository at this point in the history
Attached patch fixes two compilation problems of s1d13xxxfb.c:

- Fixes outdated dbg() message to fix compilation error with debugging enabled.

- Do not read kernel command line options when compiled as module.

Signed-off-by: Stanislav Brabec <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
stanislavbrabec authored and Linus Torvalds committed Nov 15, 2007
1 parent cfe36bd commit 28822f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/video/s1d13xxxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ s1d13xxxfb_probe(struct platform_device *pdev)
int ret = 0;
u8 revision;

dbg("probe called: device is %p\n", dev);
dbg("probe called: device is %p\n", pdev);

printk(KERN_INFO "Epson S1D13XXX FB Driver\n");

Expand Down Expand Up @@ -753,8 +753,11 @@ static struct platform_driver s1d13xxxfb_driver = {
static int __init
s1d13xxxfb_init(void)
{

#ifndef MODULE
if (fb_get_options("s1d13xxxfb", NULL))
return -ENODEV;
#endif

return platform_driver_register(&s1d13xxxfb_driver);
}
Expand Down

0 comments on commit 28822f2

Please sign in to comment.