diff options
author | Thierry Reding <treding@nvidia.com> | 2014-11-04 18:09:56 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 15:56:17 +0300 |
commit | 99035e99310a5e779b0b8f44c7d3f5814fd2ec9c (patch) | |
tree | 0e3a17c0267e3c474d9a9deed01827d70be067ea /include/drm/drm_mipi_dsi.h | |
parent | 3ef0592426da2e21bd3a265e9376cddffff931c1 (diff) | |
download | linux-99035e99310a5e779b0b8f44c7d3f5814fd2ec9c.tar.xz |
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/drm/drm_mipi_dsi.h')
-rw-r--r-- | include/drm/drm_mipi_dsi.h | 6 |
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) |