[POWERPC] pasemi: clean up mdio_gpio a bit
authorOlof Johansson <olof@lixom.net>
Sun, 4 Nov 2007 21:44:15 +0000 (15:44 -0600)
committerOlof Johansson <olof@lixom.net>
Fri, 30 Nov 2007 04:30:44 +0000 (22:30 -0600)
commit2dd3c0016090543e12aa0c5aee574ded6a88b886
tree69a1eba208b5ee0ed3d67836206ebab0719063a2
parent0b47759db54f82df68ed179ddc5cb2becea56158
[POWERPC] pasemi: clean up mdio_gpio a bit

Misc cleanups of mdio_gpio:
* Better error handling/unrolling in case of init/alloc failures
* Go through child nodes and get their interrupts instead of using
  hardcoded values
* Remap the GPIO registers at module load/driver init instead of during probe
* Coding style and other misc cleanups

Signed-off-by: Olof Johansson <olof@lixom.net>
arch/powerpc/platforms/pasemi/gpio_mdio.c