ata: octeon: Drop empty platform remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 12 Dec 2022 21:41:12 +0000 (22:41 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 2 Jan 2023 23:39:41 +0000 (08:39 +0900)
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>
drivers/ata/ahci_octeon.c

index b9460b9..5021ab3 100644 (file)
@@ -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,