summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pasemi/gpio_mdio.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-11-05 05:57:45 +0300
committerOlof Johansson <olof@lixom.net>2007-11-30 07:30:47 +0300
commit0d08a84770cb03aea24268e515342d44df8ea588 (patch)
tree91709fffba8ef377b6bada9f911e7e39f48cb649 /arch/powerpc/platforms/pasemi/gpio_mdio.c
parent2dd3c0016090543e12aa0c5aee574ded6a88b886 (diff)
downloadlinux-0d08a84770cb03aea24268e515342d44df8ea588.tar.xz
[POWERPC] pasemi: Broaden specific references to 1682M
There will be more product numbers in the future than just PA6T-1682M, but they will share much of the features. Remove some of the explicit references and compatibility checks with 1682M, and replace most of them with the more generic term "PWRficient". Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Michael Buesch <mb@bu3sch.de> Acked-by: Doug Thompson <dougthompson@xmission.com>
Diffstat (limited to 'arch/powerpc/platforms/pasemi/gpio_mdio.c')
-rw-r--r--arch/powerpc/platforms/pasemi/gpio_mdio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pasemi/gpio_mdio.c b/arch/powerpc/platforms/pasemi/gpio_mdio.c
index 95d0c78cf634..b0298045df7e 100644
--- a/arch/powerpc/platforms/pasemi/gpio_mdio.c
+++ b/arch/powerpc/platforms/pasemi/gpio_mdio.c
@@ -333,7 +333,10 @@ int gpio_mdio_init(void)
{
struct device_node *np;
- np = of_find_compatible_node(NULL, "gpio", "1682m-gpio");
+ np = of_find_compatible_node(NULL, NULL, "1682m-gpio");
+ if (!np)
+ np = of_find_compatible_node(NULL, NULL,
+ "pasemi,pwrficient-gpio");
if (!np)
return -ENODEV;
gpio_regs = of_iomap(np, 0);