diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2013-08-19 19:53:10 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-20 22:47:56 -0400 |
commit | 66cc8b6b8b2b3b5c9a67429af04ec356ff7fcfa4 (patch) | |
tree | b036153a1a0457c93b3a7b98a92c8ec6c6c6182b /drivers/gpu/drm/drm_platform.c | |
parent | 15f3b9d95bf2c85afcf11e7536c17eaeedfcefe7 (diff) |
drm: Make drm_get_platform_dev() static
It's only used in drm_platform.c.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_platform.c')
-rw-r--r-- | drivers/gpu/drm/drm_platform.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c index b8a282ea8751..400024b6d512 100644 --- a/drivers/gpu/drm/drm_platform.c +++ b/drivers/gpu/drm/drm_platform.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/export.h> | 28 | #include <linux/export.h> |
29 | #include <drm/drmP.h> | 29 | #include <drm/drmP.h> |
30 | 30 | ||
31 | /** | 31 | /* |
32 | * Register. | 32 | * Register. |
33 | * | 33 | * |
34 | * \param platdev - Platform device struture | 34 | * \param platdev - Platform device struture |
@@ -39,8 +39,8 @@ | |||
39 | * Try and register, if we fail to register, backout previous work. | 39 | * Try and register, if we fail to register, backout previous work. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | int drm_get_platform_dev(struct platform_device *platdev, | 42 | static int drm_get_platform_dev(struct platform_device *platdev, |
43 | struct drm_driver *driver) | 43 | struct drm_driver *driver) |
44 | { | 44 | { |
45 | struct drm_device *dev; | 45 | struct drm_device *dev; |
46 | int ret; | 46 | int ret; |
@@ -107,7 +107,6 @@ err_g1: | |||
107 | mutex_unlock(&drm_global_mutex); | 107 | mutex_unlock(&drm_global_mutex); |
108 | return ret; | 108 | return ret; |
109 | } | 109 | } |
110 | EXPORT_SYMBOL(drm_get_platform_dev); | ||
111 | 110 | ||
112 | static int drm_platform_get_irq(struct drm_device *dev) | 111 | static int drm_platform_get_irq(struct drm_device *dev) |
113 | { | 112 | { |