Changeset 18752


Ignore:
Timestamp:
2009-12-11T17:41:51+01:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: merge DSA switch patch

Location:
trunk/target/linux/ar71xx
Files:
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c

    r18692 r18752  
    826826                                  struct dsa_platform_data *d) 
    827827{ 
     828        int i; 
     829 
    828830        switch (id) { 
    829831        case 0: 
     
    839841                return; 
    840842        } 
    841         d->mii_bus = &ar71xx_mdio_device.dev; 
     843 
     844        for (i = 0; i < d->nr_chips; i++) 
     845                d->chip[i].mii_bus = &ar71xx_mdio_device.dev; 
     846 
    842847        ar71xx_dsa_switch_device.dev.platform_data = d; 
    843848 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c

    r16785 r18752  
    105105}; 
    106106 
    107 static struct dsa_platform_data tl_wr941nd_dsa_data = { 
     107static struct dsa_chip_data tl_wr941nd_dsa_chip = { 
    108108        .port_names[0]  = "wan", 
    109109        .port_names[1]  = "lan1", 
     
    112112        .port_names[4]  = "lan4", 
    113113        .port_names[5]  = "cpu", 
     114}; 
     115 
     116static struct dsa_platform_data tl_wr941nd_dsa_data = { 
     117        .nr_chips       = 1, 
     118        .chip           = &tl_wr941nd_dsa_chip, 
    114119}; 
    115120 
Note: See TracChangeset for help on using the changeset viewer.