]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm: Make drm_get_platform_dev() static
authorLespiau, Damien <damien.lespiau@intel.com>
Mon, 19 Aug 2013 23:53:10 +0000 (00:53 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Aug 2013 02:47:56 +0000 (12:47 +1000)
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>
drivers/gpu/drm/drm_platform.c
include/drm/drmP.h

index b8a282ea87515546695bc2965bce2b9f3e4f2f2d..400024b6d512935c55887faf397b4d746d352a56 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/export.h>
 #include <drm/drmP.h>
 
-/**
+/*
  * Register.
  *
  * \param platdev - Platform device struture
@@ -39,8 +39,8 @@
  * Try and register, if we fail to register, backout previous work.
  */
 
-int drm_get_platform_dev(struct platform_device *platdev,
-                        struct drm_driver *driver)
+static int drm_get_platform_dev(struct platform_device *platdev,
+                               struct drm_driver *driver)
 {
        struct drm_device *dev;
        int ret;
@@ -107,7 +107,6 @@ err_g1:
        mutex_unlock(&drm_global_mutex);
        return ret;
 }
-EXPORT_SYMBOL(drm_get_platform_dev);
 
 static int drm_platform_get_irq(struct drm_device *dev)
 {
index 046a7db43a6ca7f57296a3f015b2d010dbcf3dbb..1a7a78fdb4b7b9d0b96fd83d38bc91fec8aa28a9 100644 (file)
@@ -1657,9 +1657,6 @@ extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
 extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device);
 extern void drm_platform_exit(struct drm_driver *driver, struct platform_device *platform_device);
 
-extern int drm_get_platform_dev(struct platform_device *pdev,
-                               struct drm_driver *driver);
-
 /* returns true if currently okay to sleep */
 static __inline__ bool drm_can_sleep(void)
 {