Skip to content

Commit

Permalink
mfd: ezx-pcap: Don't pass pcap pointer as subdev drvdata.
Browse files Browse the repository at this point in the history
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 <ospite@studenti.unina.it>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Antonio Ospite authored and Samuel Ortiz committed Dec 13, 2009
1 parent b45440c commit b9f96b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mfd/ezx-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b9f96b5

Please sign in to comment.