Changeset 17995


Ignore:
Timestamp:
12/09/11 17:46:59 (18 months ago)
Author:
eko
Message:

some flash fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux-2.6.23/drivers/mtd/chips/gen_probe.c

    r12690 r17995  
    7373                /* The probe didn't like it */ 
    7474                printk(KERN_DEBUG "%s: Found no %s device at location zero\n", 
    75                       cp->name, map->name); 
     75                        cp->name, map->name); 
    7676                return NULL; 
    7777        } 
     
    113113        } 
    114114 
    115         mapsize = (max_chips + BITS_PER_LONG-1) / BITS_PER_LONG; 
     115        mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); 
    116116        chip_map = kzalloc(mapsize, GFP_KERNEL); 
    117117        if (!chip_map) { 
     
    244244                   because symbol_get() doesn't work there */ 
    245245#ifdef CONFIG_MTD_CFI_INTELEXT 
    246         case 0x0001: 
    247         case 0x0003: 
    248         case 0x0200: 
     246        case P_ID_INTEL_EXT: 
     247        case P_ID_INTEL_STD: 
     248        case P_ID_INTEL_PERFORMANCE: 
    249249                return cfi_cmdset_0001(map, primary); 
    250250#endif 
    251251#ifdef CONFIG_MTD_CFI_AMDSTD 
    252         case 0x0002: 
     252        case P_ID_AMD_STD: 
     253        case P_ID_SST_OLD: 
     254        case P_ID_WINBOND: 
    253255                return cfi_cmdset_0002(map, primary); 
    254256#endif 
    255257#ifdef CONFIG_MTD_CFI_STAA 
    256         case 0x0020: 
     258        case P_ID_ST_ADV: 
    257259                return cfi_cmdset_0020(map, primary); 
    258260#endif 
Note: See TracChangeset for help on using the changeset viewer.