diff options
author | Thierry Reding <treding@nvidia.com> | 2013-09-02 11:48:53 +0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-12-19 12:29:43 +0400 |
commit | 4de6a2d6acb0e2a840f07db17def7e674b9d2bb4 (patch) | |
tree | 96ebf1d9a23ad135d8c7ae5667af8f7ebf99d5e4 /drivers/gpu/host1x/dev.c | |
parent | 4c48140aaa38e4da44a2fcfe50c476208904fdd3 (diff) | |
download | linux-4de6a2d6acb0e2a840f07db17def7e674b9d2bb4.tar.xz |
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.c | 17 |
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) return err; err = platform_driver_register(&tegra_host1x_driver); - if (err < 0) { - host1x_bus_exit(); - return err; - } + if (err < 0) + goto unregister_bus; + + err = platform_driver_register(&tegra_mipi_driver); + if (err < 0) + goto unregister_host1x; return 0; + +unregister_host1x: + platform_driver_unregister(&tegra_host1x_driver); +unregister_bus: + host1x_bus_exit(); + return err; } module_init(tegra_host1x_init); static void __exit tegra_host1x_exit(void) { + platform_driver_unregister(&tegra_mipi_driver); platform_driver_unregister(&tegra_host1x_driver); host1x_bus_exit(); } |