]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/brcm80211/brcmsmac/nicpci.c
brcmsmac: remove pcicore_fixcfg()
[~andy/linux] / drivers / net / wireless / brcm80211 / brcmsmac / nicpci.c
index 9a3e03bc1fd033fb6e9cdb60c14f7ee63e792813..cd3899b741421fe042374bb15e0777f6b40a9e8d 100644 (file)
@@ -239,20 +239,3 @@ void pcicore_deinit(struct pcicore_info *pch)
 {
        kfree(pch);
 }
-
-void pcicore_fixcfg(struct pcicore_info *pi)
-{
-       struct bcma_device *core = pi->core;
-       u16 val16;
-       uint regoff;
-
-       regoff = PCIEREGOFFS(sprom[SRSH_PI_OFFSET]);
-
-       val16 = bcma_read16(pi->core, regoff);
-       if (((val16 & SRSH_PI_MASK) >> SRSH_PI_SHIFT) !=
-           (u16)core->core_index) {
-               val16 = ((u16)core->core_index << SRSH_PI_SHIFT) |
-                       (val16 & ~SRSH_PI_MASK);
-               bcma_write16(pi->core, regoff, val16);
-       }
-}