Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310259
b: refs/heads/master
c: d313a86
h: refs/heads/master
i:
  310257: 369a7e5
  310255: d90f8a5
v: v3
  • Loading branch information
Marek Vasut authored and Florian Tobias Schandinat committed Apr 21, 2012
1 parent 34fc519 commit d57d223
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2de06df49f71fee795e997dee1eeda74a2b8598b
refs/heads/master: d313a86d2efb2c5568832389663322e93e291c59
13 changes: 13 additions & 0 deletions trunk/drivers/video/mxsfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,18 @@ static int __devexit mxsfb_remove(struct platform_device *pdev)
return 0;
}

static void mxsfb_shutdown(struct platform_device *pdev)
{
struct fb_info *fb_info = platform_get_drvdata(pdev);
struct mxsfb_info *host = to_imxfb_host(fb_info);

/*
* Force stop the LCD controller as keeping it running during reboot
* might interfere with the BootROM's boot mode pads sampling.
*/
writel(CTRL_RUN, host->base + LCDC_CTRL + REG_CLR);
}

static struct platform_device_id mxsfb_devtype[] = {
{
.name = "imx23-fb",
Expand All @@ -896,6 +908,7 @@ MODULE_DEVICE_TABLE(platform, mxsfb_devtype);
static struct platform_driver mxsfb_driver = {
.probe = mxsfb_probe,
.remove = __devexit_p(mxsfb_remove),
.shutdown = mxsfb_shutdown,
.id_table = mxsfb_devtype,
.driver = {
.name = DRIVER_NAME,
Expand Down

0 comments on commit d57d223

Please sign in to comment.