And remove two one-line wrappers.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#include <hal_intf.h>
#include <usb_hal.h>
-void rtw_hal_free_data(struct adapter *adapt)
-{
- if (adapt->HalFunc.free_hal_data)
- adapt->HalFunc.free_hal_data(adapt);
-}
-
uint rtw_hal_init(struct adapter *adapt)
{
uint status = _SUCCESS;
pHalData->LastHMEBoxNum = 0;
}
-static void rtl8188e_free_hal_data(struct adapter *padapter)
+void rtw_hal_free_data(struct adapter *padapter)
{
kfree(padapter->HalData);
padapter->HalData = NULL;
}
void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
{
- pHalFunc->free_hal_data = &rtl8188e_free_hal_data;
}
/* */
};
struct hal_ops {
- void (*free_hal_data)(struct adapter *padapter);
-
s32 (*interrupt_handler)(struct adapter *padapter);
void (*hal_reset_security_engine)(struct adapter *adapter);