diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-28 13:56:16 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-28 13:58:50 -0400 |
commit | 8bd229492209c0c7d050e2f9a600c12f035d72f7 (patch) | |
tree | c76039df215b1c3ba58adb23845baa4af40f25fe /arch/arm/mach-omap2/sdrc.c | |
parent | a330bd4750bc84aebb28faddd525d0bcbdde262d (diff) |
OMAP2/3: PM: push core PM code from linux-omap
This patch is to sync the core linux-omap PM code with mainline. This
code has evolved and been used for a while the linux-omap tree, but
the attempt here is to finally get this into mainline.
Following this will be a series of patches from the 'PM branch' of the
linux-omap tree to add full PM hardware support from the linux-omap
tree.
Much of this PM core code was written by Jouni Hogander with
significant contributions from Paul Walmsley as well as many others
from Nokia, Texas Instruments and linux-omap community.
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/sdrc.c')
-rw-r--r-- | arch/arm/mach-omap2/sdrc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/sdrc.c b/arch/arm/mach-omap2/sdrc.c index d62e4e10d4b0..2045441e8385 100644 --- a/arch/arm/mach-omap2/sdrc.c +++ b/arch/arm/mach-omap2/sdrc.c | |||
@@ -60,9 +60,12 @@ struct omap_sdrc_params *omap2_sdrc_get_params(unsigned long r) | |||
60 | { | 60 | { |
61 | struct omap_sdrc_params *sp; | 61 | struct omap_sdrc_params *sp; |
62 | 62 | ||
63 | if (!sdrc_init_params) | ||
64 | return NULL; | ||
65 | |||
63 | sp = sdrc_init_params; | 66 | sp = sdrc_init_params; |
64 | 67 | ||
65 | while (sp->rate != r) | 68 | while (sp->rate && sp->rate != r) |
66 | sp++; | 69 | sp++; |
67 | 70 | ||
68 | if (!sp->rate) | 71 | if (!sp->rate) |