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>
This commit is contained in:
Lespiau, Damien 2013-08-20 00:53:10 +01:00 committed by Dave Airlie
parent 15f3b9d95b
commit 66cc8b6b8b
2 changed files with 3 additions and 7 deletions

View File

@ -28,7 +28,7 @@
#include <linux/export.h> #include <linux/export.h>
#include <drm/drmP.h> #include <drm/drmP.h>
/** /*
* Register. * Register.
* *
* \param platdev - Platform device struture * \param platdev - Platform device struture
@ -39,7 +39,7 @@
* Try and register, if we fail to register, backout previous work. * Try and register, if we fail to register, backout previous work.
*/ */
int drm_get_platform_dev(struct platform_device *platdev, static int drm_get_platform_dev(struct platform_device *platdev,
struct drm_driver *driver) struct drm_driver *driver)
{ {
struct drm_device *dev; struct drm_device *dev;
@ -107,7 +107,6 @@ err_g1:
mutex_unlock(&drm_global_mutex); mutex_unlock(&drm_global_mutex);
return ret; return ret;
} }
EXPORT_SYMBOL(drm_get_platform_dev);
static int drm_platform_get_irq(struct drm_device *dev) static int drm_platform_get_irq(struct drm_device *dev)
{ {

View 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 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 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 */ /* returns true if currently okay to sleep */
static __inline__ bool drm_can_sleep(void) static __inline__ bool drm_can_sleep(void)
{ {