]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Check for SRAM null pointer
authorTony Lindgren <tony@atomide.com>
Thu, 9 Jun 2005 18:55:03 +0000 (11:55 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 9 Jun 2005 18:55:03 +0000 (11:55 -0700)
Check for SRAM null pointer

arch/arm/mach-omap/sram.c

index 36c068ba987722622a69304d4be529939be2135d..3faf9b05c329c10f4354b35863054946f538c17e 100644 (file)
@@ -81,6 +81,9 @@ static void (*_omap_sram_reprogram_clock)(u32 dpllctl, u32 ckctl) = NULL;
 
 void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl)
 {
+       if (_omap_sram_reprogram_clock == NULL)
+               panic("Cannot use SRAM");
+
        return _omap_sram_reprogram_clock(dpllctl, ckctl);
 }