diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2010-09-16 01:31:51 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-21 17:05:00 +0200 |
commit | 15cea99306ae14ce5f7c3d3989bcc17202e2b0be (patch) | |
tree | 4755cdb83ca470dfa44b02f6f34aa8fa1c3454c6 /drivers/net/wireless/wl12xx/wl1271_spi.c | |
parent | wl1271: take irq info from private board data (diff) | |
download | linux-15cea99306ae14ce5f7c3d3989bcc17202e2b0be.tar.xz linux-15cea99306ae14ce5f7c3d3989bcc17202e2b0be.zip |
wl1271: make ref_clock configurable by board
The wl1271 device is using a reference clock that may change
between board to board.
Make the ref_clock parameter configurable by board settings
instead of having a hard coded value in the sources.
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_spi.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.c b/drivers/net/wireless/wl12xx/wl1271_spi.c index de56d8d9ee66..ced0a9e2c7e1 100644 --- a/drivers/net/wireless/wl12xx/wl1271_spi.c +++ b/drivers/net/wireless/wl12xx/wl1271_spi.c @@ -372,6 +372,8 @@ static int __devinit wl1271_probe(struct spi_device *spi) goto out_free; } + wl->ref_clock = pdata->board_ref_clock; + wl->irq = spi->irq; if (wl->irq < 0) { wl1271_error("irq missing in platform data"); |