diff options
Diffstat (limited to 'drivers/spi/pxa2xx_spi.c')
-rw-r--r-- | drivers/spi/pxa2xx_spi.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 16bf66b7c94e..e05918e79eae 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c | |||
@@ -1229,7 +1229,7 @@ static void cleanup(struct spi_device *spi) | |||
1229 | kfree(chip); | 1229 | kfree(chip); |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | static int init_queue(struct driver_data *drv_data) | 1232 | static int __init init_queue(struct driver_data *drv_data) |
1233 | { | 1233 | { |
1234 | INIT_LIST_HEAD(&drv_data->queue); | 1234 | INIT_LIST_HEAD(&drv_data->queue); |
1235 | spin_lock_init(&drv_data->lock); | 1235 | spin_lock_init(&drv_data->lock); |
@@ -1317,7 +1317,7 @@ static int destroy_queue(struct driver_data *drv_data) | |||
1317 | return 0; | 1317 | return 0; |
1318 | } | 1318 | } |
1319 | 1319 | ||
1320 | static int pxa2xx_spi_probe(struct platform_device *pdev) | 1320 | static int __init pxa2xx_spi_probe(struct platform_device *pdev) |
1321 | { | 1321 | { |
1322 | struct device *dev = &pdev->dev; | 1322 | struct device *dev = &pdev->dev; |
1323 | struct pxa2xx_spi_master *platform_info; | 1323 | struct pxa2xx_spi_master *platform_info; |
@@ -1621,8 +1621,7 @@ static struct platform_driver driver = { | |||
1621 | .bus = &platform_bus_type, | 1621 | .bus = &platform_bus_type, |
1622 | .owner = THIS_MODULE, | 1622 | .owner = THIS_MODULE, |
1623 | }, | 1623 | }, |
1624 | .probe = pxa2xx_spi_probe, | 1624 | .remove = pxa2xx_spi_remove, |
1625 | .remove = __devexit_p(pxa2xx_spi_remove), | ||
1626 | .shutdown = pxa2xx_spi_shutdown, | 1625 | .shutdown = pxa2xx_spi_shutdown, |
1627 | .suspend = pxa2xx_spi_suspend, | 1626 | .suspend = pxa2xx_spi_suspend, |
1628 | .resume = pxa2xx_spi_resume, | 1627 | .resume = pxa2xx_spi_resume, |
@@ -1630,9 +1629,7 @@ static struct platform_driver driver = { | |||
1630 | 1629 | ||
1631 | static int __init pxa2xx_spi_init(void) | 1630 | static int __init pxa2xx_spi_init(void) |
1632 | { | 1631 | { |
1633 | platform_driver_register(&driver); | 1632 | return platform_driver_probe(&driver, pxa2xx_spi_probe); |
1634 | |||
1635 | return 0; | ||
1636 | } | 1633 | } |
1637 | module_init(pxa2xx_spi_init); | 1634 | module_init(pxa2xx_spi_init); |
1638 | 1635 | ||