All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@intel.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 8/8] drm: Make drm_get_platform_dev() static
Date: Tue, 20 Aug 2013 00:53:10 +0100	[thread overview]
Message-ID: <1376956390-12124-9-git-send-email-damien.lespiau@intel.com> (raw)
In-Reply-To: <1376956390-12124-1-git-send-email-damien.lespiau@intel.com>

It's only used in drm_platform.c.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 drivers/gpu/drm/drm_platform.c | 7 +++----
 include/drm/drmP.h             | 3 ---
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c
index b8a282e..400024b 100644
--- a/drivers/gpu/drm/drm_platform.c
+++ b/drivers/gpu/drm/drm_platform.c
@@ -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)
 {
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 046a7db..1a7a78f 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -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)
 {
-- 
1.8.3.1

  parent reply	other threads:[~2013-08-19 23:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-19 23:53 A gentle scrub Damien Lespiau
2013-08-19 23:53 ` [PATCH 1/8] drm: Remove stale prototypes Damien Lespiau
2013-08-19 23:53 ` [PATCH 2/8] drm: Remove drm_mode_create_dithering_property() Damien Lespiau
2013-08-19 23:53 ` [PATCH 3/8] drm: Remove drm_mode_list_concat() Damien Lespiau
2013-08-19 23:53 ` [PATCH 4/8] drm: Make drm_mode_remove() static Damien Lespiau
2013-08-19 23:53 ` [PATCH 5/8] drm: Remove 2 unused defines Damien Lespiau
2013-08-19 23:53 ` [PATCH 6/8] drm: Make drm_fb_cma_describe() static Damien Lespiau
2013-08-19 23:53 ` [PATCH 7/8] drm: Remove unused PCI ids Damien Lespiau
2013-08-19 23:53 ` Damien Lespiau [this message]
2013-08-20 14:56   ` [PATCH 8/8] drm: Make drm_get_platform_dev() static Ian Romanick
2013-08-20 16:17     ` Damien Lespiau
2013-08-20 14:10 ` A gentle scrub Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1376956390-12124-9-git-send-email-damien.lespiau@intel.com \
    --to=damien.lespiau@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.