summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/hsmmc.c
diff options
context:
space:
mode:
authorLaurent Pinchart2011-11-02 12:54:03 +0100
committerTony Lindgren2011-11-05 01:41:07 +0100
commitaf504e5d39de35dc3de5f42c357fe1b519fea33f (patch)
treee3767d2a524e17980fe0b00d449b809b76467340 /arch/arm/mach-omap2/hsmmc.c
parentARM: OMAP: dmtimer: Include linux/module.h (diff)
downloadkernel-qcow2-linux-af504e5d39de35dc3de5f42c357fe1b519fea33f.tar.gz
kernel-qcow2-linux-af504e5d39de35dc3de5f42c357fe1b519fea33f.tar.xz
kernel-qcow2-linux-af504e5d39de35dc3de5f42c357fe1b519fea33f.zip
ARM: OMAP: I2C: Fix omap_register_i2c_bus() return value on success
Commit 4d17aeb1c5b2375769446d13012a98e6d265ec13 ("OMAP: I2C: split device registration and convert OMAP2+ to omap_device") makes omap2_i2c_add_bus() return a pointer to an omap_device instead on success instead of 0. This breaks the omap_register_i2c_bus() ABI and results in the igep0020 board code detecting an I2C bus registration error when there is none. Fix the problem by using PTR_RET() instead of PTR_ERR() in omap2_i2c_add_bus(). Reported-by: Alexander Kinzer <a.kinzer@plusoptix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [tony@atomide.com: updated to return pdev instead of od] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/hsmmc.c')
0 files changed, 0 insertions, 0 deletions