[PATCH] libata-sff: Undo bug introduced with pci_iomap changes
commitc91d41705988070fe841569a53b5d9789ed60c7c
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 1 May 2007 11:53:27 +0000 (1 12:53 +0100)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:42 +0000 (23 14:32 -0700)
treeb7b9fc3e81161af2113b556e5dbf580ffc2e1bd6
parent497e7e4b19c35d73a6c664de09a155625164544d
[PATCH] libata-sff: Undo bug introduced with pci_iomap changes

If you have a controller with one channel disabled and unmapped the new
iomap code blindly tries to iomap unconfigured BARs. Later on the code
does the right thing and checks for unmapped bars but it is done in the
wrong order

Reorder the checks and make the iomap conditional

Tejun: I think the code below is now correct but would appreciate you
giving it a review.

Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/ata/libata-sff.c