summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-04-02 17:46:30 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-04-20 08:53:52 +0100
commit1ca5d2f0196cfca678086fa6f88eec4f9d0307ee (patch)
tree2d867897b6c6c88e912b60ca98ff06aaf98f1642 /include/linux/mtd
parentfed457a83611182f5a2e049cce02f8f4e1b65644 (diff)
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 <hsweeten@visionengravers.com> Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions