From: Antonio Ospite Date: Tue, 3 Nov 2009 10:53:17 +0000 (+0100) Subject: mfd: ezx-pcap: Don't pass pcap pointer as subdev drvdata. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9f96b5dcb1e2a75d142e481b77805ffdc6ccea6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mfd: ezx-pcap: Don't pass pcap pointer as subdev drvdata. Abusing subdev drvdata is not needed anymore, as all pcap subdevs are now retrieving the pcap pointer from their parent device. This change removes a leftover coming from early versions of ezx-pcap and its subdevs drivers. Signed-off-by: Antonio Ospite Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c index 876288917976..df405af968fa 100644 --- a/drivers/mfd/ezx-pcap.c +++ b/drivers/mfd/ezx-pcap.c @@ -387,7 +387,6 @@ static int __devinit pcap_add_subdev(struct pcap_chip *pcap, pdev = platform_device_alloc(subdev->name, subdev->id); pdev->dev.parent = &pcap->spi->dev; pdev->dev.platform_data = subdev->platform_data; - platform_set_drvdata(pdev, pcap); return platform_device_add(pdev); }