Commit 2df44b8b authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

ath6kl: remove completely pointles platform driver

Perhaps there was some good intention on having some platform
driver on ath6kl, but right now its pointless. Kill!

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 60a9bc57
...@@ -636,10 +636,6 @@ ar6000_init_module(void) ...@@ -636,10 +636,6 @@ ar6000_init_module(void)
osdrvCallbacks.devicePowerChangeHandler = ar6000_power_change_ev; osdrvCallbacks.devicePowerChangeHandler = ar6000_power_change_ev;
#endif #endif
r = ar6000_pm_init();
if (r)
return r;
#ifdef DEBUG #ifdef DEBUG
/* Set the debug flags if specified at load time */ /* Set the debug flags if specified at load time */
if(debugflags != 0) if(debugflags != 0)
...@@ -689,8 +685,6 @@ ar6000_cleanup_module(void) ...@@ -689,8 +685,6 @@ ar6000_cleanup_module(void)
a_module_debug_support_cleanup(); a_module_debug_support_cleanup();
ar6000_pm_exit();
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("ar6000_cleanup: success\n")); AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("ar6000_cleanup: success\n"));
} }
......
...@@ -302,35 +302,6 @@ int ar6000_power_change_ev(void *context, u32 config) ...@@ -302,35 +302,6 @@ int ar6000_power_change_ev(void *context, u32 config)
return status; return status;
} }
static int ar6000_pm_probe(struct platform_device *pdev)
{
return 0;
}
static int ar6000_pm_remove(struct platform_device *pdev)
{
return 0;
}
static int ar6000_pm_suspend(struct platform_device *pdev, pm_message_t state)
{
return 0;
}
static int ar6000_pm_resume(struct platform_device *pdev)
{
return 0;
}
static struct platform_driver ar6000_pm_device = {
.probe = ar6000_pm_probe,
.remove = ar6000_pm_remove,
.suspend = ar6000_pm_suspend,
.resume = ar6000_pm_resume,
.driver = {
.name = "wlan_ar6000_pm",
},
};
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
int int
...@@ -653,29 +624,3 @@ ar6000_set_wlan_state(struct ar6_softc *ar, AR6000_WLAN_STATE state) ...@@ -653,29 +624,3 @@ ar6000_set_wlan_state(struct ar6_softc *ar, AR6000_WLAN_STATE state)
status = ar6000_update_wlan_pwr_state(ar, state, false); status = ar6000_update_wlan_pwr_state(ar, state, false);
return status; return status;
} }
int ar6000_pm_init()
{
int r;
A_REGISTER_MODULE_DEBUG_INFO(pm);
#ifdef CONFIG_PM
/*
* Register ar6000_pm_device into system.
* We should also add platform_device into the first item of array
* of devices[] in file arch/xxx/mach-xxx/board-xxxx.c
*/
r = platform_driver_register(&ar6000_pm_device);
if (r < 0)
return -ENODEV;
#endif /* CONFIG_PM */
return 0;
}
void ar6000_pm_exit()
{
#ifdef CONFIG_PM
platform_driver_unregister(&ar6000_pm_device);
#endif /* CONFIG_PM */
}
...@@ -178,9 +178,6 @@ int ar6000_power_change_ev(void *context, u32 config); ...@@ -178,9 +178,6 @@ int ar6000_power_change_ev(void *context, u32 config);
void ar6000_check_wow_status(struct ar6_softc *ar, struct sk_buff *skb, bool isEvent); void ar6000_check_wow_status(struct ar6_softc *ar, struct sk_buff *skb, bool isEvent);
#endif #endif
int ar6000_pm_init(void);
void ar6000_pm_exit(void);
#ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT #ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT
int ar6000_add_ap_interface(struct ar6_softc *ar, char *ifname); int ar6000_add_ap_interface(struct ar6_softc *ar, char *ifname);
int ar6000_remove_ap_interface(struct ar6_softc *ar); int ar6000_remove_ap_interface(struct ar6_softc *ar);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment