summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-04 16:09:56 +0100
committerThierry Reding <treding@nvidia.com>2014-11-13 13:56:17 +0100
commit99035e99310a5e779b0b8f44c7d3f5814fd2ec9c (patch)
tree0e3a17c0267e3c474d9a9deed01827d70be067ea /include
parent3ef0592426da2e21bd3a265e9376cddffff931c1 (diff)
downloadlinux-99035e99310a5e779b0b8f44c7d3f5814fd2ec9c.tar.gz
linux-99035e99310a5e779b0b8f44c7d3f5814fd2ec9c.tar.bz2
linux-99035e99310a5e779b0b8f44c7d3f5814fd2ec9c.zip
drm/dsi: Do not require .owner field to be set
Drivers now no longer need to set the .owner field. It will be automatically set at registration time. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_mipi_dsi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h
index ea0d982058c3..f1d8d0dbb4f1 100644
--- a/include/drm/drm_mipi_dsi.h
+++ b/include/drm/drm_mipi_dsi.h
@@ -245,9 +245,13 @@ static inline void mipi_dsi_set_drvdata(struct mipi_dsi_device *dsi, void *data)
dev_set_drvdata(&dsi->dev, data);
}
-int mipi_dsi_driver_register(struct mipi_dsi_driver *driver);
+int mipi_dsi_driver_register_full(struct mipi_dsi_driver *driver,
+ struct module *owner);
void mipi_dsi_driver_unregister(struct mipi_dsi_driver *driver);
+#define mipi_dsi_driver_register(driver) \
+ mipi_dsi_driver_register_full(driver, THIS_MODULE)
+
#define module_mipi_dsi_driver(__mipi_dsi_driver) \
module_driver(__mipi_dsi_driver, mipi_dsi_driver_register, \
mipi_dsi_driver_unregister)