]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
parport: amiga: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 22 Aug 2013 02:14:43 +0000 (11:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 04:39:16 +0000 (21:39 -0700)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/parport_amiga.c

index 09503b8d12e667f18109a7ba3595a327c8809737..26ecdea84fb511373fc8a0922f7afc3dd45ddc18 100644 (file)
@@ -232,7 +232,6 @@ static int __exit amiga_parallel_remove(struct platform_device *pdev)
        if (port->irq != PARPORT_IRQ_NONE)
                free_irq(IRQ_AMIGA_CIAA_FLG, port);
        parport_put_port(port);
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }