summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_octeon.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-12-12 22:41:12 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2023-01-03 00:39:41 +0100
commitf060ba1882ec83cbb3c3809104bfa1d5868ea130 (patch)
tree86e00b4e67bc30bcd1b67147ea67abeb85a42b28 /drivers/ata/ahci_octeon.c
parentLinux 6.2-rc2 (diff)
downloadlinux-f060ba1882ec83cbb3c3809104bfa1d5868ea130.tar.xz
linux-f060ba1882ec83cbb3c3809104bfa1d5868ea130.zip
ata: octeon: Drop empty platform remove function
A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/ahci_octeon.c')
-rw-r--r--drivers/ata/ahci_octeon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ata/ahci_octeon.c b/drivers/ata/ahci_octeon.c
index b9460b91288f..5021ab3ede49 100644
--- a/drivers/ata/ahci_octeon.c
+++ b/drivers/ata/ahci_octeon.c
@@ -73,11 +73,6 @@ static int ahci_octeon_probe(struct platform_device *pdev)
return 0;
}
-static int ahci_octeon_remove(struct platform_device *pdev)
-{
- return 0;
-}
-
static const struct of_device_id octeon_ahci_match[] = {
{ .compatible = "cavium,octeon-7130-sata-uctl", },
{ /* sentinel */ }
@@ -86,7 +81,6 @@ MODULE_DEVICE_TABLE(of, octeon_ahci_match);
static struct platform_driver ahci_octeon_driver = {
.probe = ahci_octeon_probe,
- .remove = ahci_octeon_remove,
.driver = {
.name = "octeon-ahci",
.of_match_table = octeon_ahci_match,