]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
set_vpp() is only functional for omap1 now
authorAmit Kucheria <amit.kucheria@verdurent.com>
Fri, 19 Oct 2007 13:32:52 +0000 (16:32 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 22 Oct 2007 00:11:09 +0000 (17:11 -0700)
Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mtd/maps/omap_nor.c

index a0a12af08aa034db80cf10cafb742d456bacb925..a1342a2a1cb976d9e739020ddfd1a108fa713073 100644 (file)
@@ -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;