28 #include <linux/kernel.h>
29 #include <linux/module.h>
31 #include <linux/slab.h>
36 static void rt2x00soc_free_reg(
struct rt2x00_dev *rt2x00dev)
47 static int rt2x00soc_alloc_reg(
struct rt2x00_dev *rt2x00dev)
72 rt2x00soc_free_reg(rt2x00dev);
89 platform_set_drvdata(pdev, hw);
92 rt2x00dev->
dev = &pdev->
dev;
96 rt2x00dev->
name = pdev->
dev.driver->name;
100 retval = rt2x00soc_alloc_reg(rt2x00dev);
102 goto exit_free_device;
111 rt2x00soc_free_reg(rt2x00dev);
129 rt2x00soc_free_reg(rt2x00dev);
142 return rt2x00lib_suspend(rt2x00dev, state);
151 return rt2x00lib_resume(rt2x00dev);