From: Benjamin Herrenschmidt Date: Thu, 20 Dec 2007 03:55:00 +0000 (+1100) Subject: [POWERPC] Various fixes to pcibios_enable_device() X-Git-Tag: v2.6.25-rc1~1131^2~237 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf988a19458f08950551f66c110e41fac452b2b;p=pandora-kernel.git [POWERPC] Various fixes to pcibios_enable_device() Our implementation of pcibios_enable_device() has a couple of problems. One is that it should not check IORESOURCE_UNSET, as this might be left dangling after resource assignment (shouldn't but there are bugs), but instead, we make it check resource->parent which should be a reliable indication that the resource has been successfully claimed (it's in the resource tree). Then, we also need to skip ROM resources that haven't been enabled as x86 does. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed