X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=arch%2Farm%2Fmach-omap2%2Fgpmc.c;h=fe75656f990097e32a571964e2825c612c3e2adb;hb=4fb85d35bcec842e0f20437aea277157973aa45f;hp=5de0f7b852f765e16219c76f2b52917b573c3cc7;hpb=a86c0b9867940bd0ba78f109686079b4051a463d;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5de0f7b852f7..fe75656f9900 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -297,7 +297,7 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t) div = gpmc_cs_calc_divider(cs, t->sync_clk); if (div < 0) - return -1; + return div; GPMC_SET_ONE(GPMC_CS_CONFIG2, 0, 3, cs_on); GPMC_SET_ONE(GPMC_CS_CONFIG2, 8, 12, cs_rd_off);