aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorJavier Martinez Canillas <[email protected]>2013-03-14 16:09:20 +0100
committerJon Hunter <[email protected]>2013-04-03 20:13:41 -0500
commite8ffd6fdf28ac8404acebf2759315600bfdcb5f9 (patch)
tree324704ef67594941dd7fc998c2f1639dbfc64009 /lib/mpi/mpi-internal.h
parent84b00f0e2878e6b7dbfa346d496d564aa55c6175 (diff)
ARM: OMAP2+: return -ENODEV if GPMC child device creation fails
gpmc_probe_nor_child() calls of_platform_device_create() to create a platform device for the NOR child. If this function fails the value of ret is returned to the caller but this value is zero since it was assigned the return of a previous call to gpmc_cs_program_settings() that had to succeed or otherwise gpmc_probe_nor_child() would have returned before. This means that if of_platform_device_create() fails, 0 will be returned to the caller instead of an appropriate error code. Signed-off-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Jon Hunter <[email protected]> Tested-by: Ezequiel Garcia <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions