diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-17 04:18:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-09 06:49:58 -0500 |
commit | 7b98ac24ef7df87010000aa4b15a640c15a9eca5 (patch) | |
tree | 388eea8a78dcb0430d0e06b97b26bdefe4f8a071 | |
parent | d38f1220666a2bd89c4f62d286723a3417b34b9e (diff) |
[SPARC]: Remove of_platform_device_create
There are no callers of this on the Sparc platforms.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/of_device.c | 27 | ||||
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 26 | ||||
-rw-r--r-- | include/asm-sparc/of_platform.h | 5 | ||||
-rw-r--r-- | include/asm-sparc64/of_platform.h | 5 |
4 files changed, 0 insertions, 63 deletions
diff --git a/arch/sparc/kernel/of_device.c b/arch/sparc/kernel/of_device.c index 3ea000d15e3a..cc4c235c4f59 100644 --- a/arch/sparc/kernel/of_device.c +++ b/arch/sparc/kernel/of_device.c | |||
@@ -584,30 +584,3 @@ static int __init of_debug(char *str) | |||
584 | } | 584 | } |
585 | 585 | ||
586 | __setup("of_debug=", of_debug); | 586 | __setup("of_debug=", of_debug); |
587 | |||
588 | struct of_device* of_platform_device_create(struct device_node *np, | ||
589 | const char *bus_id, | ||
590 | struct device *parent, | ||
591 | struct bus_type *bus) | ||
592 | { | ||
593 | struct of_device *dev; | ||
594 | |||
595 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); | ||
596 | if (!dev) | ||
597 | return NULL; | ||
598 | |||
599 | dev->dev.parent = parent; | ||
600 | dev->dev.bus = bus; | ||
601 | dev->dev.release = of_release_dev; | ||
602 | |||
603 | strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE); | ||
604 | |||
605 | if (of_device_register(dev) != 0) { | ||
606 | kfree(dev); | ||
607 | return NULL; | ||
608 | } | ||
609 | |||
610 | return dev; | ||
611 | } | ||
612 | |||
613 | EXPORT_SYMBOL(of_platform_device_create); | ||
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index fc5c0cc793b8..0fd9db95b896 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c | |||
@@ -868,29 +868,3 @@ static int __init of_debug(char *str) | |||
868 | } | 868 | } |
869 | 869 | ||
870 | __setup("of_debug=", of_debug); | 870 | __setup("of_debug=", of_debug); |
871 | |||
872 | struct of_device* of_platform_device_create(struct device_node *np, | ||
873 | const char *bus_id, | ||
874 | struct device *parent, | ||
875 | struct bus_type *bus) | ||
876 | { | ||
877 | struct of_device *dev; | ||
878 | |||
879 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); | ||
880 | if (!dev) | ||
881 | return NULL; | ||
882 | |||
883 | dev->dev.parent = parent; | ||
884 | dev->dev.bus = bus; | ||
885 | dev->dev.release = of_release_dev; | ||
886 | |||
887 | strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE); | ||
888 | |||
889 | if (of_device_register(dev) != 0) { | ||
890 | kfree(dev); | ||
891 | return NULL; | ||
892 | } | ||
893 | |||
894 | return dev; | ||
895 | } | ||
896 | EXPORT_SYMBOL(of_platform_device_create); | ||
diff --git a/include/asm-sparc/of_platform.h b/include/asm-sparc/of_platform.h index d638737ff13c..38334351c36b 100644 --- a/include/asm-sparc/of_platform.h +++ b/include/asm-sparc/of_platform.h | |||
@@ -21,9 +21,4 @@ extern struct bus_type sbus_bus_type; | |||
21 | 21 | ||
22 | #define of_bus_type of_platform_bus_type /* for compatibility */ | 22 | #define of_bus_type of_platform_bus_type /* for compatibility */ |
23 | 23 | ||
24 | extern struct of_device *of_platform_device_create(struct device_node *np, | ||
25 | const char *bus_id, | ||
26 | struct device *parent, | ||
27 | struct bus_type *bus); | ||
28 | |||
29 | #endif /* _ASM_SPARC_OF_PLATFORM_H */ | 24 | #endif /* _ASM_SPARC_OF_PLATFORM_H */ |
diff --git a/include/asm-sparc64/of_platform.h b/include/asm-sparc64/of_platform.h index f15cfa723916..78aa032b674c 100644 --- a/include/asm-sparc64/of_platform.h +++ b/include/asm-sparc64/of_platform.h | |||
@@ -22,9 +22,4 @@ extern struct bus_type sbus_bus_type; | |||
22 | 22 | ||
23 | #define of_bus_type of_platform_bus_type /* for compatibility */ | 23 | #define of_bus_type of_platform_bus_type /* for compatibility */ |
24 | 24 | ||
25 | extern struct of_device *of_platform_device_create(struct device_node *np, | ||
26 | const char *bus_id, | ||
27 | struct device *parent, | ||
28 | struct bus_type *bus); | ||
29 | |||
30 | #endif /* _ASM_SPARC64_OF_PLATFORM_H */ | 25 | #endif /* _ASM_SPARC64_OF_PLATFORM_H */ |