mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 14:02:43 -04:00
drm: omapdrm: dss: Store dispc ops in dss_device structure
Remove the global dispc ops variable by storing it in the dss_device structure. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
committed by
Tomi Valkeinen
parent
72877cf38b
commit
d3541ca81d
@@ -4622,7 +4622,7 @@ static int dispc_bind(struct device *dev, struct device *master, void *data)
|
||||
|
||||
dispc_runtime_put();
|
||||
|
||||
dispc_set_ops(&dispc_ops);
|
||||
dss->dispc_ops = &dispc_ops;
|
||||
|
||||
dispc.debugfs = dss_debugfs_create_file(dss, "dispc", dispc_dump_regs,
|
||||
&dispc);
|
||||
@@ -4637,9 +4637,11 @@ err_runtime_get:
|
||||
static void dispc_unbind(struct device *dev, struct device *master,
|
||||
void *data)
|
||||
{
|
||||
struct dss_device *dss = dispc.dss;
|
||||
|
||||
dss_debugfs_remove_file(dispc.debugfs);
|
||||
|
||||
dispc_set_ops(NULL);
|
||||
dss->dispc_ops = NULL;
|
||||
|
||||
pm_runtime_disable(dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user