linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl_soc: remove mpc83xx_wdt code
@ 2008-09-29 13:56 Anton Vorontsov
  2008-09-29 14:23 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Vorontsov @ 2008-09-29 13:56 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev

mpc83xx_wdt is the OF driver now, so we don't need fsl_soc constructor.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---

Just resending the following patch:

http://ozlabs.org/pipermail/linuxppc-dev/2008-May/056253.html

 arch/powerpc/sysdev/fsl_soc.c |   47 -----------------------------------------
 1 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 214388e..eeb0700 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -412,53 +412,6 @@ err:
 
 arch_initcall(gfar_of_init);
 
-
-#ifdef CONFIG_PPC_83xx
-static int __init mpc83xx_wdt_init(void)
-{
-	struct resource r;
-	struct device_node *np;
-	struct platform_device *dev;
-	u32 freq = fsl_get_sys_freq();
-	int ret;
-
-	np = of_find_compatible_node(NULL, "watchdog", "mpc83xx_wdt");
-
-	if (!np) {
-		ret = -ENODEV;
-		goto nodev;
-	}
-
-	memset(&r, 0, sizeof(r));
-
-	ret = of_address_to_resource(np, 0, &r);
-	if (ret)
-		goto err;
-
-	dev = platform_device_register_simple("mpc83xx_wdt", 0, &r, 1);
-	if (IS_ERR(dev)) {
-		ret = PTR_ERR(dev);
-		goto err;
-	}
-
-	ret = platform_device_add_data(dev, &freq, sizeof(freq));
-	if (ret)
-		goto unreg;
-
-	of_node_put(np);
-	return 0;
-
-unreg:
-	platform_device_unregister(dev);
-err:
-	of_node_put(np);
-nodev:
-	return ret;
-}
-
-arch_initcall(mpc83xx_wdt_init);
-#endif
-
 static enum fsl_usb2_phy_modes determine_usb_phy(const char *phy_type)
 {
 	if (!phy_type)
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc/fsl_soc: remove mpc83xx_wdt code
  2008-09-29 13:56 [PATCH] powerpc/fsl_soc: remove mpc83xx_wdt code Anton Vorontsov
@ 2008-09-29 14:23 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-09-29 14:23 UTC (permalink / raw)
  To: Anton Vorontsov; +Cc: linuxppc-dev


On Sep 29, 2008, at 8:56 AM, Anton Vorontsov wrote:

> mpc83xx_wdt is the OF driver now, so we don't need fsl_soc  
> constructor.
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
>
> Just resending the following patch:
>
> http://ozlabs.org/pipermail/linuxppc-dev/2008-May/056253.html
>
> arch/powerpc/sysdev/fsl_soc.c |   47  
> -----------------------------------------
> 1 files changed, 0 insertions(+), 47 deletions(-)

applied.

- k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-29 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-29 13:56 [PATCH] powerpc/fsl_soc: remove mpc83xx_wdt code Anton Vorontsov
2008-09-29 14:23 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).