From 1fe2aa25c7ea9c5d11a90c3580d17c5a93ef5b84 Mon Sep 17 00:00:00 2001 From: Amit Kucheria Date: Fri, 19 Oct 2007 16:32:52 +0300 Subject: [PATCH] set_vpp() is only functional for omap1 now Signed-off-by: Amit Kucheria Signed-off-by: Tony Lindgren --- drivers/mtd/maps/omap_nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/omap_nor.c b/drivers/mtd/maps/omap_nor.c index a0a12af08aa..a1342a2a1cb 100644 --- a/drivers/mtd/maps/omap_nor.c +++ b/drivers/mtd/maps/omap_nor.c @@ -61,7 +61,7 @@ static void omap_set_vpp(struct map_info *map, int enable) { static int count; - if (!cpu_is_omap24xx()) { + if (cpu_class_is_omap1()) { if (enable) { if (count++ == 0) OMAP_EMIFS_CONFIG_REG |= OMAP_EMIFS_CONFIG_WP; -- 2.41.1