diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2009-04-09 16:53:59 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2009-04-09 16:53:59 +0000 |
| commit | dd015656a7b5b8d941c16163d679459b765d4085 (patch) | |
| tree | 9b67ea3bf88e25d15e10f2b0bc2eed263f2c3159 /sys/dev | |
| parent | ae190bc08997f2bca0f3ef929fbbcc3803a009f9 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ath/ath_hal/ah_internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ah_internal.h b/sys/dev/ath/ath_hal/ah_internal.h index 8b00e3060481..ef5aba5ed56e 100644 --- a/sys/dev/ath/ath_hal/ah_internal.h +++ b/sys/dev/ath/ath_hal/ah_internal.h @@ -333,8 +333,10 @@ struct ath_hal_private { #define ath_hal_disablePCIE(_ah) \ (_ah)->ah_disablePCIE(_ah) -#define ath_hal_eepromDetach(_ah) \ - AH_PRIVATE(_ah)->ah_eepromDetach(_ah) +#define ath_hal_eepromDetach(_ah) do { \ + if (AH_PRIVATE(_ah)->ah_eepromDetach != AH_NULL) \ + AH_PRIVATE(_ah)->ah_eepromDetach(_ah); \ +} while (0) #define ath_hal_eepromGet(_ah, _param, _val) \ AH_PRIVATE(_ah)->ah_eepromGet(_ah, _param, _val) #define ath_hal_eepromSet(_ah, _param, _val) \ |
