diff --git a/drivers/video/fbdev/msm/mdss_dsi_status.c b/drivers/video/fbdev/msm/mdss_dsi_status.c index 44b91c50c5b5..bf545ae311f2 100644 --- a/drivers/video/fbdev/msm/mdss_dsi_status.c +++ b/drivers/video/fbdev/msm/mdss_dsi_status.c @@ -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); diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index 67ef0fd28dea..1aacf6ffef9f 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -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;