Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parport: amiga: remove unnecessary platform_set_drvdata()

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>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
c06ca9ae a84a3222

-1
-1
drivers/parport/parport_amiga.c
··· 232 232 if (port->irq != PARPORT_IRQ_NONE) 233 233 free_irq(IRQ_AMIGA_CIAA_FLG, port); 234 234 parport_put_port(port); 235 - platform_set_drvdata(pdev, NULL); 236 235 return 0; 237 236 } 238 237