rt2x00: add copy of clk for soc devices
Since clk_get() is not trivial add copy of clk pointer to rt2x00dev for System On Chip devices and initialize it on probe routine. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
b3d75a81f0
commit
34db70b92f
@@ -39,6 +39,7 @@
|
||||
#include <linux/hrtimer.h>
|
||||
#include <linux/average.h>
|
||||
#include <linux/usb.h>
|
||||
#include <linux/clk.h>
|
||||
|
||||
#include <net/mac80211.h>
|
||||
|
||||
@@ -1011,6 +1012,9 @@ struct rt2x00_dev {
|
||||
unsigned int extra_tx_headroom;
|
||||
|
||||
struct usb_anchor *anchor;
|
||||
|
||||
/* Clock for System On Chip devices. */
|
||||
struct clk *clk;
|
||||
};
|
||||
|
||||
struct rt2x00_bar_list_entry {
|
||||
|
Reference in New Issue
Block a user