From: H Hartley Sweeten Date: Fri, 2 Apr 2010 22:46:30 +0000 (-0500) Subject: mtd/maps/physmap: catch failure to register MTD_PHYSMAP_COMPAT device X-Git-Tag: v2.6.35-rc1~465^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ca5d2f0196cfca678086fa6f88eec4f9d0307ee;p=pandora-kernel.git mtd/maps/physmap: catch failure to register MTD_PHYSMAP_COMPAT device If the default Kconfig values are used with MTD_PHYSMAP_COMPAT you end up with a resource where end < start. This causes __request_resource to return a conflict which then returns an -EBUSY error code. The current physmap.c code just assumes that the platfom_device_register will always succeed. Catch this failure during the physmap_init and propogate the error. Signed-off-by: H Hartley Sweeten Reported-by: Randy Dunlap Signed-off-by: David Woodhouse --- Reading git-diff-tree failed