summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-06 18:07:03 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-11-06 18:07:03 +0000
commit6597cb84c86cefe4e174533b79e17b86f634b5e0 (patch)
tree9cc2c5f15e48c41462be3732e23dab4cf09ee6b9 /arch/arm/mach-omap2/gpmc.c
parent878708f290f6ed8b108d73fd6ab624cda6266a1e (diff)
parent5c32f62b97d62bec097c09e54e6602d0fce2af07 (diff)
downloadtalos-op-linux-6597cb84c86cefe4e174533b79e17b86f634b5e0.tar.gz
talos-op-linux-6597cb84c86cefe4e174533b79e17b86f634b5e0.zip
Merge branch 'omap-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r--arch/arm/mach-omap2/gpmc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 763bdbeaf681..2249049c1d5a 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -429,18 +429,16 @@ void __init gpmc_init(void)
gpmc_l3_clk = clk_get(NULL, ck);
if (IS_ERR(gpmc_l3_clk)) {
printk(KERN_ERR "Could not get GPMC clock %s\n", ck);
- return -ENODEV;
+ BUG();
}
gpmc_base = ioremap(l, SZ_4K);
if (!gpmc_base) {
clk_put(gpmc_l3_clk);
printk(KERN_ERR "Could not get GPMC register memory\n");
- return -ENOMEM;
+ BUG();
}
- BUG_ON(IS_ERR(gpmc_l3_clk));
-
l = gpmc_read_reg(GPMC_REVISION);
printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f);
/* Set smart idle mode and automatic L3 clock gating */
OpenPOWER on IntegriCloud