X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=arch%2Farm%2Fplat-omap%2Fdmtimer.c;h=5679ec41928b34d78d9d63d42b18bfeecbe5df99;hb=c48cd659892962f79bba4b4e0eedea8e5aa54c44;hp=7cda34d93c8bff85a686a17a57719751fe7a700b;hpb=857835c6d57aef101ac335a6da2149b54e7e0512;p=deliverable%2Flinux.git diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 7cda34d93c8b..5679ec41928b 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -505,7 +505,7 @@ int omap_dm_timer_set_source(struct omap_dm_timer *timer, int source) } ret = clk_set_parent(timer->fclk, parent); - if (IS_ERR_VALUE(ret)) + if (ret < 0) pr_err("%s: failed to set %s as parent\n", __func__, parent_name);