dispc.c (1c4b92ee00734766967f5aa425767923c747f9c6) | dispc.c (d3541ca81dbddeefa0c42df448211a9dbaef0843) |
---|---|
1/* 2 * Copyright (C) 2009 Nokia Corporation 3 * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com> 4 * 5 * Some code and ideas taken from drivers/video/omap/ driver 6 * by Imre Deak. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 4608 unchanged lines hidden (view full) --- 4617 _omap_dispc_initial_config(); 4618 4619 rev = dispc_read_reg(DISPC_REVISION); 4620 dev_dbg(&pdev->dev, "OMAP DISPC rev %d.%d\n", 4621 FLD_GET(rev, 7, 4), FLD_GET(rev, 3, 0)); 4622 4623 dispc_runtime_put(); 4624 | 1/* 2 * Copyright (C) 2009 Nokia Corporation 3 * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com> 4 * 5 * Some code and ideas taken from drivers/video/omap/ driver 6 * by Imre Deak. 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 4608 unchanged lines hidden (view full) --- 4617 _omap_dispc_initial_config(); 4618 4619 rev = dispc_read_reg(DISPC_REVISION); 4620 dev_dbg(&pdev->dev, "OMAP DISPC rev %d.%d\n", 4621 FLD_GET(rev, 7, 4), FLD_GET(rev, 3, 0)); 4622 4623 dispc_runtime_put(); 4624 |
4625 dispc_set_ops(&dispc_ops); | 4625 dss->dispc_ops = &dispc_ops; |
4626 4627 dispc.debugfs = dss_debugfs_create_file(dss, "dispc", dispc_dump_regs, 4628 &dispc); 4629 4630 return 0; 4631 4632err_runtime_get: 4633 pm_runtime_disable(&pdev->dev); 4634 return r; 4635} 4636 4637static void dispc_unbind(struct device *dev, struct device *master, 4638 void *data) 4639{ | 4626 4627 dispc.debugfs = dss_debugfs_create_file(dss, "dispc", dispc_dump_regs, 4628 &dispc); 4629 4630 return 0; 4631 4632err_runtime_get: 4633 pm_runtime_disable(&pdev->dev); 4634 return r; 4635} 4636 4637static void dispc_unbind(struct device *dev, struct device *master, 4638 void *data) 4639{ |
4640 struct dss_device *dss = dispc.dss; 4641 |
|
4640 dss_debugfs_remove_file(dispc.debugfs); 4641 | 4642 dss_debugfs_remove_file(dispc.debugfs); 4643 |
4642 dispc_set_ops(NULL); | 4644 dss->dispc_ops = NULL; |
4643 4644 pm_runtime_disable(dev); 4645 4646 dispc_errata_i734_wa_fini(); 4647} 4648 4649static const struct component_ops dispc_component_ops = { 4650 .bind = dispc_bind, --- 67 unchanged lines hidden --- | 4645 4646 pm_runtime_disable(dev); 4647 4648 dispc_errata_i734_wa_fini(); 4649} 4650 4651static const struct component_ops dispc_component_ops = { 4652 .bind = dispc_bind, --- 67 unchanged lines hidden --- |