]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/sdrc.c
OMAP2/3: SDRC: fix walking of SDRC params list
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / sdrc.c
index 2a30060cb4b78ec897bb668b31c665c26c160827..7da65879bccd25a7f2c40a27287cede8f83d9661 100644 (file)
@@ -58,7 +58,7 @@ struct omap_sdrc_params *omap2_sdrc_get_params(unsigned long r)
 
        sp = sdrc_init_params;
 
-       while (sp->rate != r)
+       while (sp->rate && sp->rate != r)
                sp++;
 
        if (!sp->rate)