]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/rt2860/common/ee_prom.c
Staging: rt28x0: remove unused ->eewrite methods
[net-next-2.6.git] / drivers / staging / rt2860 / common / ee_prom.c
index 9ebff8b9e568c3756f482f30297df332cb2a20f4..d600e9b829a0c3ab2813d20ddb46a0d58f086a61 100644 (file)
@@ -220,51 +220,3 @@ int rtmp_ee_prom_read16(
 
        return NDIS_STATUS_SUCCESS;
 }
-
-
-int rtmp_ee_prom_write16(
-    IN  PRTMP_ADAPTER  pAd,
-    IN  USHORT Offset,
-    IN  USHORT Data)
-{
-       UINT32 x;
-
-
-       Offset /= 2;
-
-       EWEN(pAd);
-
-       // reset bits and set EECS
-       RTMP_IO_READ32(pAd, E2PROM_CSR, &x);
-       x &= ~(EEDI | EEDO | EESK);
-       x |= EECS;
-       RTMP_IO_WRITE32(pAd, E2PROM_CSR, x);
-
-       // patch can not access e-Fuse issue
-       if (!(IS_RT3090(pAd) || IS_RT3572(pAd) || IS_RT3390(pAd)))
-       {
-               // kick a pulse
-               RaiseClock(pAd, &x);
-               LowerClock(pAd, &x);
-       }
-
-       // output the read_opcode ,register number and data in that order
-       ShiftOutBits(pAd, EEPROM_WRITE_OPCODE, 3);
-       ShiftOutBits(pAd, Offset, pAd->EEPROMAddressNum);
-       ShiftOutBits(pAd, Data, 16);            // 16-bit access
-
-       // read DO status
-       RTMP_IO_READ32(pAd, E2PROM_CSR, &x);
-
-       EEpromCleanup(pAd);
-
-       RTMPusecDelay(10000);   //delay for twp(MAX)=10ms
-
-       EWDS(pAd);
-
-       EEpromCleanup(pAd);
-
-
-       return NDIS_STATUS_SUCCESS;
-
-}