[PATCH] pmac IDE: don't release empty interfaces
authorThibaut VARENE <T-Bone@parisc-linux.org>
Fri, 18 Nov 2005 21:37:37 +0000 (22:37 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 18 Nov 2005 21:37:37 +0000 (22:37 +0100)
commitfba51bae8c3797034f497ed68f4ed120a903f941
treec3c3edf04f0cd58d4090e0f3b79b36183db9c9bd
parent2fefef1828ded4df17cfb51481b9e0782d2b3ce2
[PATCH] pmac IDE: don't release empty interfaces

From: Thibaut VARENE <T-Bone@parisc-linux.org>

Cleaning up the hwif without knowing its previous state in pmac.c is a big
and potentially dangerous job, and there seems to be no generic code interface
that would provide either a way to properly release an hwif or to clean it up.

Fixes OOPS for empty PMAC interface and add-on PCI controller.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ppc/pmac.c