From fae00e72510ff2614441c6b08b117d6752b70307 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Thu, 9 Jun 2005 11:55:03 -0700 Subject: [PATCH] ARM: OMAP: Check for SRAM null pointer Check for SRAM null pointer --- arch/arm/mach-omap/sram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap/sram.c b/arch/arm/mach-omap/sram.c index 36c068ba987..3faf9b05c32 100644 --- a/arch/arm/mach-omap/sram.c +++ b/arch/arm/mach-omap/sram.c @@ -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); } -- 2.41.1