]> git.baikalelectronics.ru Git - kernel.git/commit
IDE: Fix platform device registration in Swarm IDE driver (v2)
authorRalf Baechle <ralf@linux-mips.org>
Sun, 5 Oct 2008 16:23:28 +0000 (18:23 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 5 Oct 2008 16:23:28 +0000 (18:23 +0200)
commitb3e80f425c0c24da1968e3910a8db7ef4b84b97d
treef93b84a3e9a63d640f14e8bcaaddd49c41790392
parentf8ab6f1ac09967ca0882f8664f249b61286c17cc
IDE: Fix platform device registration in Swarm IDE driver (v2)

The Swarm IDE driver uses a release method which is defined in the driver
itself thus potentially oopsable.  The simple fix would be to just leak
the device but this patch goes the full length and moves the entire
handling of the platform device in the platform code and retains only
the platform driver code in drivers/ide/mips/swarm.c.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
[bart: remove no longer needed BLK_DEV_IDE_SWARM from ide/Kconfig]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
arch/mips/sibyte/swarm/Makefile
arch/mips/sibyte/swarm/platform.c [new file with mode: 0644]
drivers/ide/Kconfig
drivers/ide/mips/Makefile
drivers/ide/mips/swarm.c [deleted file]