mdp: mdss: Avoid initializing mdss fb when on virtual fb
Avoid intializing MDSS fb device when virtual framebuffer is enabled. Change-Id: I20b2823db76e6e8cb3156343311179c5b36c8c34 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
parent
7fbc0bb228
commit
c747f82604
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -126,6 +126,10 @@ static int fb_event_callback(struct notifier_block *self,
|
|||
return NOTIFY_BAD;
|
||||
}
|
||||
|
||||
/* handle only mdss fb device */
|
||||
if (strncmp("mdssfb", evdata->info->fix.id, 6))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
mfd = evdata->info->par;
|
||||
ctrl_pdata = container_of(dev_get_platdata(&mfd->pdev->dev),
|
||||
struct mdss_dsi_ctrl_pdata, panel_data);
|
||||
|
|
|
@ -4664,6 +4664,9 @@ int __init mdss_fb_init(void)
|
|||
{
|
||||
int rc = -ENODEV;
|
||||
|
||||
if (fb_get_options("msmfb", NULL))
|
||||
return rc;
|
||||
|
||||
if (platform_driver_register(&mdss_fb_driver))
|
||||
return rc;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue