diff options
| -rw-r--r-- | drivers/ata/pata_platform.c | 17 | ||||
| -rw-r--r-- | include/linux/ata_platform.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 449aa29931bc..f4372d0c7ce6 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
| @@ -178,23 +178,6 @@ int __devinit __pata_platform_probe(struct device *dev, | |||
| 178 | } | 178 | } |
| 179 | EXPORT_SYMBOL_GPL(__pata_platform_probe); | 179 | EXPORT_SYMBOL_GPL(__pata_platform_probe); |
| 180 | 180 | ||
| 181 | /** | ||
| 182 | * __pata_platform_remove - unplug a platform interface | ||
| 183 | * @dev: device | ||
| 184 | * | ||
| 185 | * A platform bus ATA device has been unplugged. Perform the needed | ||
| 186 | * cleanup. Also called on module unload for any active devices. | ||
| 187 | */ | ||
| 188 | int __pata_platform_remove(struct device *dev) | ||
| 189 | { | ||
| 190 | struct ata_host *host = dev_get_drvdata(dev); | ||
| 191 | |||
| 192 | ata_host_detach(host); | ||
| 193 | |||
| 194 | return 0; | ||
| 195 | } | ||
| 196 | EXPORT_SYMBOL_GPL(__pata_platform_remove); | ||
| 197 | |||
| 198 | static int __devinit pata_platform_probe(struct platform_device *pdev) | 181 | static int __devinit pata_platform_probe(struct platform_device *pdev) |
| 199 | { | 182 | { |
| 200 | struct resource *io_res; | 183 | struct resource *io_res; |
diff --git a/include/linux/ata_platform.h b/include/linux/ata_platform.h index b856a2a590d9..fe9989636b62 100644 --- a/include/linux/ata_platform.h +++ b/include/linux/ata_platform.h | |||
| @@ -22,8 +22,6 @@ extern int __devinit __pata_platform_probe(struct device *dev, | |||
| 22 | unsigned int ioport_shift, | 22 | unsigned int ioport_shift, |
| 23 | int __pio_mask); | 23 | int __pio_mask); |
| 24 | 24 | ||
| 25 | extern int __devexit __pata_platform_remove(struct device *dev); | ||
| 26 | |||
| 27 | /* | 25 | /* |
| 28 | * Marvell SATA private data | 26 | * Marvell SATA private data |
| 29 | */ | 27 | */ |
