mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-22 03:47:08 +03:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27295 3c298f89-4303-0410-b956-a3cf2f4a3e73
29 lines
914 B
Diff
29 lines
914 B
Diff
--- a/drivers/ssb/driver_pcicore.c
|
|
+++ b/drivers/ssb/driver_pcicore.c
|
|
@@ -412,16 +412,6 @@ static int __devinit pcicore_is_in_hostm
|
|
* Workarounds.
|
|
**************************************************/
|
|
|
|
-static void __devinit ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore *pc)
|
|
-{
|
|
- u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0));
|
|
- if (((tmp & 0xF000) >> 12) != pc->dev->core_index) {
|
|
- tmp &= ~0xF000;
|
|
- tmp |= (pc->dev->core_index << 12);
|
|
- pcicore_write16(pc, SSB_PCICORE_SPROM(0), tmp);
|
|
- }
|
|
-}
|
|
-
|
|
static u8 ssb_pcicore_polarity_workaround(struct ssb_pcicore *pc)
|
|
{
|
|
return (ssb_pcie_read(pc, 0x204) & 0x10) ? 0xC0 : 0x80;
|
|
@@ -529,8 +519,6 @@ void __devinit ssb_pcicore_init(struct s
|
|
if (!ssb_device_is_enabled(dev))
|
|
ssb_device_enable(dev, 0);
|
|
|
|
- ssb_pcicore_fix_sprom_core_index(pc);
|
|
-
|
|
#ifdef CONFIG_SSB_PCICORE_HOSTMODE
|
|
pc->hostmode = pcicore_is_in_hostmode(pc);
|
|
if (pc->hostmode)
|