diff options
Diffstat (limited to 'drivers/spi/spi-au1550.c')
-rw-r--r-- | drivers/spi/spi-au1550.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index 1d00d9b397dd..c4141c92bcff 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c | |||
@@ -775,7 +775,7 @@ static int au1550_spi_probe(struct platform_device *pdev) | |||
775 | 775 | ||
776 | hw = spi_master_get_devdata(master); | 776 | hw = spi_master_get_devdata(master); |
777 | 777 | ||
778 | hw->master = spi_master_get(master); | 778 | hw->master = master; |
779 | hw->pdata = dev_get_platdata(&pdev->dev); | 779 | hw->pdata = dev_get_platdata(&pdev->dev); |
780 | hw->dev = &pdev->dev; | 780 | hw->dev = &pdev->dev; |
781 | 781 | ||
@@ -985,6 +985,7 @@ static int au1550_spi_remove(struct platform_device *pdev) | |||
985 | MODULE_ALIAS("platform:au1550-spi"); | 985 | MODULE_ALIAS("platform:au1550-spi"); |
986 | 986 | ||
987 | static struct platform_driver au1550_spi_drv = { | 987 | static struct platform_driver au1550_spi_drv = { |
988 | .probe = au1550_spi_probe, | ||
988 | .remove = au1550_spi_remove, | 989 | .remove = au1550_spi_remove, |
989 | .driver = { | 990 | .driver = { |
990 | .name = "au1550-spi", | 991 | .name = "au1550-spi", |
@@ -1004,7 +1005,7 @@ static int __init au1550_spi_init(void) | |||
1004 | printk(KERN_ERR "au1550-spi: cannot add memory" | 1005 | printk(KERN_ERR "au1550-spi: cannot add memory" |
1005 | "dbdma device\n"); | 1006 | "dbdma device\n"); |
1006 | } | 1007 | } |
1007 | return platform_driver_probe(&au1550_spi_drv, au1550_spi_probe); | 1008 | return platform_driver_register(&au1550_spi_drv); |
1008 | } | 1009 | } |
1009 | module_init(au1550_spi_init); | 1010 | module_init(au1550_spi_init); |
1010 | 1011 | ||