diff options
Diffstat (limited to 'drivers/video/omap2/dss/display-sysfs.c')
-rw-r--r-- | drivers/video/omap2/dss/display-sysfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/display-sysfs.c b/drivers/video/omap2/dss/display-sysfs.c index 58abbafeab17..21d7f77df702 100644 --- a/drivers/video/omap2/dss/display-sysfs.c +++ b/drivers/video/omap2/dss/display-sysfs.c @@ -33,7 +33,7 @@ static struct omap_dss_device *to_dss_device_sysfs(struct device *dev) struct omap_dss_device *dssdev = NULL; for_each_dss_dev(dssdev) { - if (&dssdev->dev == dev) { + if (dssdev->dev == dev) { omap_dss_put_device(dssdev); return dssdev; } @@ -308,7 +308,7 @@ int display_init_sysfs(struct platform_device *pdev) int r; for_each_dss_dev(dssdev) { - struct kobject *kobj = &dssdev->dev.kobj; + struct kobject *kobj = &dssdev->dev->kobj; r = sysfs_create_files(kobj, display_sysfs_attrs); if (r) { @@ -339,6 +339,7 @@ void display_uninit_sysfs(struct platform_device *pdev) for_each_dss_dev(dssdev) { sysfs_remove_link(&pdev->dev.kobj, dssdev->alias); - sysfs_remove_files(&dssdev->dev.kobj, display_sysfs_attrs); + sysfs_remove_files(&dssdev->dev->kobj, + display_sysfs_attrs); } } |