Ignore:
Timestamp:
2011-12-03T19:13:25+01:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: run the RedBoot parser only on the RedBoot based boards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c

    r28982 r29414  
    4343}; 
    4444 
     45static const char *pb42_part_probes[] = { 
     46        "RedBoot", 
     47        NULL, 
     48}; 
     49 
     50static struct flash_platform_data pb42_flash_data = { 
     51        .part_probes    = pb42_part_probes, 
     52}; 
     53 
    4554#define PB42_WAN_PHYMASK        BIT(20) 
    4655#define PB42_LAN_PHYMASK        (BIT(16) | BIT(17) | BIT(18) | BIT(19)) 
     
    4958static void __init pb42_init(void) 
    5059{ 
    51         ar71xx_add_device_m25p80(NULL); 
     60        ar71xx_add_device_m25p80(&pb42_flash_data); 
    5261 
    5362        ar71xx_add_device_mdio(0, ~PB42_MDIO_PHYMASK); 
Note: See TracChangeset for help on using the changeset viewer.