X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Farm%2Fplat-omap%2Fi2c.c;h=db071bc71c4d61d8e5bd5938eb3e438a06f2b449;hb=d65616a92c9fab8fc3caa120d18b7be7b6285914;hp=679cbd49c01945633b81b7c68cf25b0c38dfdc56;hpb=22097fd297c85ec6c2e700d506f231f7cae442e1;p=pandora-kernel.git diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 679cbd49c019..db071bc71c4d 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -184,7 +184,7 @@ static inline int omap2_i2c_add_bus(int bus_id) NULL, 0, 0); WARN(IS_ERR(pdev), "Could not build omap_device for %s\n", name); - return PTR_ERR(pdev); + return PTR_RET(pdev); } #else static inline int omap2_i2c_add_bus(int bus_id)