build fix: remove unused variable HAL_BUS_HANDLE sh
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 31 Mar 2013 13:28:55 +0000 (15:28 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sun, 31 Mar 2013 18:05:34 +0000 (20:05 +0200)
serie of function pass this vairiable but do not use it
on actual target.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/wlan/ah.c
target_firmware/wlan/ah.h
target_firmware/wlan/ah_osdep.c
target_firmware/wlan/ah_osdep.h
target_firmware/wlan/ar5416_hw.c
target_firmware/wlan/if_ath.c

index 53993f535dafac3cad69d80d818a134fceca34c5..ada5ab2e70389050b1702d971237387a2a28b187 100755 (executable)
 #include <asf_bitmap.h>
 
 extern struct ath_hal *ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev,
-                                   HAL_BUS_HANDLE sh, a_uint32_t flags, HAL_STATUS *status);
+                                   a_uint32_t flags, HAL_STATUS *status);
 
 struct ath_hal*
 ath_hal_attach_tgt(a_uint32_t devid,HAL_SOFTC sc,
-                  adf_os_device_t dev, HAL_BUS_HANDLE sh,
+                  adf_os_device_t dev,
                   a_uint32_t flags, HAL_STATUS *error)
 {
        struct ath_hal *ah = AH_NULL;
 
        devid = AR5416_DEVID_PCIE;
-       ah = ar5416Attach(devid, sc, dev, sh, flags, error);
+       ah = ar5416Attach(devid, sc, dev, flags, error);
 
        return ah;
 }
index 6425de60e76a8f8670fcbe74b31189919b7e3da5..714df752abac2412c066a58063c40f50de731edb 100755 (executable)
@@ -367,7 +367,6 @@ struct ath_hal
 {
        a_uint32_t ah_magic;
        HAL_SOFTC ah_sc;
-       HAL_BUS_HANDLE ah_sh;
        adf_os_device_t ah_dev;
            
        a_uint32_t ah_macVersion;
@@ -479,7 +478,7 @@ struct ath_hal
 
 
 extern struct ath_hal * __ahdecl ath_hal_attach_tgt(a_uint32_t devid, HAL_SOFTC,
-                                                   adf_os_device_t dev, HAL_BUS_HANDLE sh,
+                                                   adf_os_device_t dev,
                                                    a_uint32_t flags, HAL_STATUS* status);
 
 extern const HAL_RATE_TABLE * __ahdecl ath_hal_getratetable(struct ath_hal *,
index 7cb22663580b80ebdecb315864dc7e0e6eb5dfd6..dc1753bae3dd28d35014bc7ae841a8be33350080 100755 (executable)
@@ -62,10 +62,10 @@ ath_hal_getuptime(struct ath_hal *ah)
 
 struct ath_hal *
 _ath_hal_attach_tgt(a_uint32_t devid, HAL_SOFTC sc,
-                   adf_os_device_t dev,HAL_BUS_HANDLE sh, a_uint32_t flags, void* s)
+                   adf_os_device_t dev, a_uint32_t flags, void* s)
 {
        HAL_STATUS status;
-       struct ath_hal *ah = ath_hal_attach_tgt(devid,sc,dev,sh, flags, &status);
+       struct ath_hal *ah = ath_hal_attach_tgt(devid, sc, dev, flags, &status);
        adf_os_print(" ath_hal = %p \n",ah);
        *(HAL_STATUS *)s = status;
        return ah;
index 58a07ecc2881153e861953f4a544773de33ad84b..f45e0cbd3a7f5ec8d751f61827ea124b469211d4 100755 (executable)
@@ -156,7 +156,7 @@ extern  void __ahdecl ath_hal_reg_write_target(struct ath_hal *ah,
 extern  a_uint32_t __ahdecl ath_hal_reg_read_target(struct ath_hal *ah, a_uint32_t reg);
 
 #define AH_USE_EEPROM     0x00000001
-extern  struct ath_hal *_ath_hal_attach_tgt( a_uint32_t,HAL_SOFTC,adf_os_device_t,HAL_BUS_HANDLE,
+extern  struct ath_hal *_ath_hal_attach_tgt( a_uint32_t, HAL_SOFTC, adf_os_device_t,
        a_uint32_t flags, void* status);
 extern  void ath_hal_detach(struct ath_hal *);
 #endif /* _ATH_AH_OSDEP_H_ */
index 7bc0b8b04ce07f0fbcd2392f72280fd57d28a9e3..c0ae4181ac0d3fa409177331cd994340d5912234 100644 (file)
@@ -99,7 +99,7 @@ void ar5416Detach(struct ath_hal *ah)
 
 struct ath_hal *
 ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev,
-            HAL_BUS_HANDLE sh, a_uint32_t flags, HAL_STATUS *status)
+            a_uint32_t flags, HAL_STATUS *status)
 {
        struct ath_hal_5416 *ahp;
        struct ath_hal *ah;
@@ -115,7 +115,6 @@ ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev,
 
        ah->ah_dev = dev;
        ah->ah_sc = sc;
-       ah->ah_sh = sh;
        
        /* If its a Owl 2.0 chip then change the hal structure to
           point to the Owl 2.0 ar5416_hal_20 structure */
index abbdb3e6fb52799388e32c7e8c4cf72623fdf62b..33fb7c90472f84397e78e9fab31091cf804654ac 100755 (executable)
@@ -1906,7 +1906,7 @@ a_int32_t ath_tgt_attach(a_uint32_t devid,a_uint32_t mem_start,
        ATH_INIT_TQUEUE(sc->sc_dev, &sc->sc_fataltq, ath_fatal_tasklet, sc);
 
        flags |= AH_USE_EEPROM;
-       ah = _ath_hal_attach_tgt(devid,sc,sc->sc_dev,mem_start, flags, &status);
+       ah = _ath_hal_attach_tgt(devid, sc, sc->sc_dev, flags, &status);
        if (ah == NULL) {
                error = ENXIO;
                goto bad;