aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/cw1200
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/cw1200')
-rw-r--r--drivers/net/wireless/cw1200/cw1200_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/cw1200/cw1200_spi.c b/drivers/net/wireless/cw1200/cw1200_spi.c
index f5e6b489ed32..e310752f0e33 100644
--- a/drivers/net/wireless/cw1200/cw1200_spi.c
+++ b/drivers/net/wireless/cw1200/cw1200_spi.c
@@ -375,7 +375,7 @@ static struct hwbus_ops cw1200_spi_hwbus_ops = {
375static int cw1200_spi_probe(struct spi_device *func) 375static int cw1200_spi_probe(struct spi_device *func)
376{ 376{
377 const struct cw1200_platform_data_spi *plat_data = 377 const struct cw1200_platform_data_spi *plat_data =
378 func->dev.platform_data; 378 dev_get_platdata(&func->dev);
379 struct hwbus_priv *self; 379 struct hwbus_priv *self;
380 int status; 380 int status;
381 381
@@ -453,7 +453,7 @@ static int cw1200_spi_disconnect(struct spi_device *func)
453 } 453 }
454 kfree(self); 454 kfree(self);
455 } 455 }
456 cw1200_spi_off(func->dev.platform_data); 456 cw1200_spi_off(dev_get_platdata(&func->dev));
457 457
458 return 0; 458 return 0;
459} 459}