aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/dev.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-09-02 03:48:53 -0400
committerThierry Reding <treding@nvidia.com>2013-12-19 03:29:43 -0500
commit4de6a2d6acb0e2a840f07db17def7e674b9d2bb4 (patch)
tree96ebf1d9a23ad135d8c7ae5667af8f7ebf99d5e4 /drivers/gpu/host1x/dev.c
parent4c48140aaa38e4da44a2fcfe50c476208904fdd3 (diff)
gpu: host1x: Add MIPI pad calibration support
This driver adds support to perform calibration of the MIPI pads for CSI and DSI. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.c')
-rw-r--r--drivers/gpu/host1x/dev.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
index 80da003d63de..646a333b069a 100644
--- a/drivers/gpu/host1x/dev.c
+++ b/drivers/gpu/host1x/dev.c
@@ -210,17 +210,26 @@ static int __init tegra_host1x_init(void)
210 return err; 210 return err;
211 211
212 err = platform_driver_register(&tegra_host1x_driver); 212 err = platform_driver_register(&tegra_host1x_driver);
213 if (err < 0) { 213 if (err < 0)
214 host1x_bus_exit(); 214 goto unregister_bus;
215 return err; 215
216 } 216 err = platform_driver_register(&tegra_mipi_driver);
217 if (err < 0)
218 goto unregister_host1x;
217 219
218 return 0; 220 return 0;
221
222unregister_host1x:
223 platform_driver_unregister(&tegra_host1x_driver);
224unregister_bus:
225 host1x_bus_exit();
226 return err;
219} 227}
220module_init(tegra_host1x_init); 228module_init(tegra_host1x_init);
221 229
222static void __exit tegra_host1x_exit(void) 230static void __exit tegra_host1x_exit(void)
223{ 231{
232 platform_driver_unregister(&tegra_mipi_driver);
224 platform_driver_unregister(&tegra_host1x_driver); 233 platform_driver_unregister(&tegra_host1x_driver);
225 host1x_bus_exit(); 234 host1x_bus_exit();
226} 235}