diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-11-02 03:46:20 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-03 05:15:20 -0500 |
commit | 58d0ff2f05d6915c455b5fe7c404e299fe34993b (patch) | |
tree | ab323c1371d26034b169b3d7ab2387ad8d3673d9 | |
parent | 83291d65cbeadda2bd600b6c500df7046dcd6fa9 (diff) |
pata_ixp4xx_cf: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/ata/pata_ixp4xx_cf.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index badb1789a918..0566e67b5e12 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c | |||
@@ -187,22 +187,13 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev) | |||
187 | return ata_host_activate(host, irq, ata_sff_interrupt, 0, &ixp4xx_sht); | 187 | return ata_host_activate(host, irq, ata_sff_interrupt, 0, &ixp4xx_sht); |
188 | } | 188 | } |
189 | 189 | ||
190 | static __devexit int ixp4xx_pata_remove(struct platform_device *dev) | ||
191 | { | ||
192 | struct ata_host *host = platform_get_drvdata(dev); | ||
193 | |||
194 | ata_host_detach(host); | ||
195 | |||
196 | return 0; | ||
197 | } | ||
198 | |||
199 | static struct platform_driver ixp4xx_pata_platform_driver = { | 190 | static struct platform_driver ixp4xx_pata_platform_driver = { |
200 | .driver = { | 191 | .driver = { |
201 | .name = DRV_NAME, | 192 | .name = DRV_NAME, |
202 | .owner = THIS_MODULE, | 193 | .owner = THIS_MODULE, |
203 | }, | 194 | }, |
204 | .probe = ixp4xx_pata_probe, | 195 | .probe = ixp4xx_pata_probe, |
205 | .remove = __devexit_p(ixp4xx_pata_remove), | 196 | .remove = ata_platform_remove_one, |
206 | }; | 197 | }; |
207 | 198 | ||
208 | module_platform_driver(ixp4xx_pata_platform_driver); | 199 | module_platform_driver(ixp4xx_pata_platform_driver); |