diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-05 17:09:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-05 17:09:28 -0400 |
commit | 90864fbc7639d7a2300c67a18c9fb9fbcf7d51d2 (patch) | |
tree | 6951c8d0e529dbfc7c4cec75d4cec63350e39b7c /drivers/net/wireless/wl12xx/spi.c | |
parent | 228e548e602061b08ee8e8966f567c12aa079682 (diff) | |
parent | a70171dce9cd44cb06c7d299eba9fa87a8933045 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'drivers/net/wireless/wl12xx/spi.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/spi.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c index ffc745b17f4d..51662bb68019 100644 --- a/drivers/net/wireless/wl12xx/spi.c +++ b/drivers/net/wireless/wl12xx/spi.c | |||
@@ -355,7 +355,8 @@ static struct wl1271_if_operations spi_ops = { | |||
355 | .power = wl1271_spi_set_power, | 355 | .power = wl1271_spi_set_power, |
356 | .dev = wl1271_spi_wl_to_dev, | 356 | .dev = wl1271_spi_wl_to_dev, |
357 | .enable_irq = wl1271_spi_enable_interrupts, | 357 | .enable_irq = wl1271_spi_enable_interrupts, |
358 | .disable_irq = wl1271_spi_disable_interrupts | 358 | .disable_irq = wl1271_spi_disable_interrupts, |
359 | .set_block_size = NULL, | ||
359 | }; | 360 | }; |
360 | 361 | ||
361 | static int __devinit wl1271_probe(struct spi_device *spi) | 362 | static int __devinit wl1271_probe(struct spi_device *spi) |
@@ -363,6 +364,7 @@ static int __devinit wl1271_probe(struct spi_device *spi) | |||
363 | struct wl12xx_platform_data *pdata; | 364 | struct wl12xx_platform_data *pdata; |
364 | struct ieee80211_hw *hw; | 365 | struct ieee80211_hw *hw; |
365 | struct wl1271 *wl; | 366 | struct wl1271 *wl; |
367 | unsigned long irqflags; | ||
366 | int ret; | 368 | int ret; |
367 | 369 | ||
368 | pdata = spi->dev.platform_data; | 370 | pdata = spi->dev.platform_data; |
@@ -400,6 +402,13 @@ static int __devinit wl1271_probe(struct spi_device *spi) | |||
400 | } | 402 | } |
401 | 403 | ||
402 | wl->ref_clock = pdata->board_ref_clock; | 404 | wl->ref_clock = pdata->board_ref_clock; |
405 | wl->tcxo_clock = pdata->board_tcxo_clock; | ||
406 | wl->platform_quirks = pdata->platform_quirks; | ||
407 | |||
408 | if (wl->platform_quirks & WL12XX_PLATFORM_QUIRK_EDGE_IRQ) | ||
409 | irqflags = IRQF_TRIGGER_RISING; | ||
410 | else | ||
411 | irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT; | ||
403 | 412 | ||
404 | wl->irq = spi->irq; | 413 | wl->irq = spi->irq; |
405 | if (wl->irq < 0) { | 414 | if (wl->irq < 0) { |
@@ -409,7 +418,7 @@ static int __devinit wl1271_probe(struct spi_device *spi) | |||
409 | } | 418 | } |
410 | 419 | ||
411 | ret = request_threaded_irq(wl->irq, wl1271_hardirq, wl1271_irq, | 420 | ret = request_threaded_irq(wl->irq, wl1271_hardirq, wl1271_irq, |
412 | IRQF_TRIGGER_HIGH | IRQF_ONESHOT, | 421 | irqflags, |
413 | DRIVER_NAME, wl); | 422 | DRIVER_NAME, wl); |
414 | if (ret < 0) { | 423 | if (ret < 0) { |
415 | wl1271_error("request_irq() failed: %d", ret); | 424 | wl1271_error("request_irq() failed: %d", ret); |
@@ -490,5 +499,7 @@ MODULE_LICENSE("GPL"); | |||
490 | MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>"); | 499 | MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>"); |
491 | MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>"); | 500 | MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>"); |
492 | MODULE_FIRMWARE(WL1271_FW_NAME); | 501 | MODULE_FIRMWARE(WL1271_FW_NAME); |
493 | MODULE_FIRMWARE(WL1271_AP_FW_NAME); | 502 | MODULE_FIRMWARE(WL128X_FW_NAME); |
503 | MODULE_FIRMWARE(WL127X_AP_FW_NAME); | ||
504 | MODULE_FIRMWARE(WL128X_AP_FW_NAME); | ||
494 | MODULE_ALIAS("spi:wl1271"); | 505 | MODULE_ALIAS("spi:wl1271"); |