All of lore.kernel.org
 help / color / mirror / Atom feed
From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 8/8] ARM: mxc: drop now unused function mxc_register_device
Date: Mon,  1 Aug 2011 11:38:29 +0200	[thread overview]
Message-ID: <1312191509-21895-8-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <1312191509-21895-1-git-send-email-u.kleine-koenig@pengutronix.de>

Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
 arch/arm/plat-mxc/devices.c             |   14 --------------
 arch/arm/plat-mxc/include/mach/common.h |    1 -
 2 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c
index 0d6ed31..5aaa8c5 100644
--- a/arch/arm/plat-mxc/devices.c
+++ b/arch/arm/plat-mxc/devices.c
@@ -23,20 +23,6 @@
 #include <linux/platform_device.h>
 #include <mach/common.h>
 
-int __init mxc_register_device(struct platform_device *pdev, void *data)
-{
-	int ret;
-
-	pdev->dev.platform_data = data;
-
-	ret = platform_device_register(pdev);
-	if (ret)
-		pr_debug("Unable to register platform device '%s': %d\n",
-			 pdev->name, ret);
-
-	return ret;
-}
-
 struct platform_device *__init imx_add_platform_device_dmamask(
 		const char *name, int id,
 		const struct resource *res, unsigned int num_resources,
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h
index 4e3d978..91d810ce 100644
--- a/arch/arm/plat-mxc/include/mach/common.h
+++ b/arch/arm/plat-mxc/include/mach/common.h
@@ -66,7 +66,6 @@ extern int mx53_clocks_init(unsigned long ckil, unsigned long osc,
 			unsigned long ckih1, unsigned long ckih2);
 extern struct platform_device *mxc_register_gpio(char *name, int id,
 	resource_size_t iobase, resource_size_t iosize, int irq, int irq_high);
-extern int mxc_register_device(struct platform_device *pdev, void *data);
 extern void mxc_set_cpu_type(unsigned int type);
 extern void mxc_arch_reset_init(void __iomem *);
 extern void mx51_efikamx_reset(void);
-- 
1.7.5.4

      parent reply	other threads:[~2011-08-01  9:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-01  9:37 [PATCH 0/8] ARM: getting rid of mx5/devices.c and mxc_register_device Uwe Kleine-König
2011-08-01  9:38 ` [PATCH 1/8] ARM: mx5: fix remaining unconsistent names for irqs Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 2/8] ARM: mx5: remove unused #includes of devices.h Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 3/8] ARM: mx5: dynamically allocate mxc-ehci devices Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 4/8] ARM: mx5: dynamically allocate fsl-usb2-udc devices Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 5/8] ARM: mx5: dynamically allocate high speed i2c (imx-i2c actually) Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 6/8] ARM: imx/mx1ads: dynamically allocate physmap-flash device Uwe Kleine-König
2011-08-01  9:38   ` [PATCH 7/8] ARM: imx/armadillo5x0: " Uwe Kleine-König
2011-08-01  9:38   ` Uwe Kleine-König [this message]

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=1312191509-21895-8-git-send-email-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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.