The patch titled From: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> has been added to the -mm tree. Its filename is rtc-driver-for-pcap2-pmic-get-pcap-data-from-the-parent-device.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: From: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> Right now the pcap core driver passes a reference to its pcap data abusing the subdrivers platform drvdata, this is not good. Get the reference directly from the parent device. This change was suggested by Mark Brown in http://www.spinics.net/lists/linux-input/msg04285.html Signed-off-by: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> Cc: Daniel Ribeiro <drwyrm@xxxxxxxxx> Cc: guiming zhuo <gmzhuo@xxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Cc: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/rtc/rtc-pcap.c~rtc-driver-for-pcap2-pmic-get-pcap-data-from-the-parent-device drivers/rtc/rtc-pcap.c --- a/drivers/rtc/rtc-pcap.c~rtc-driver-for-pcap2-pmic-get-pcap-data-from-the-parent-device +++ a/drivers/rtc/rtc-pcap.c @@ -154,7 +154,7 @@ static int __devinit pcap_rtc_probe(stru if (!pcap_rtc) return err; - pcap_rtc->pcap = platform_get_drvdata(pdev); + pcap_rtc->pcap = dev_get_drvdata(pdev->dev.parent); pcap_rtc->rtc = rtc_device_register("pcap", &pdev->dev, &pcap_rtc_ops, THIS_MODULE); _ Patches currently in -mm which might be from ospite@xxxxxxxxxxxxxxxxx are origin.patch linux-next.patch pxa2xx_spi-register-earlier.patch rtc-driver-for-pcap2-pmic-get-pcap-data-from-the-parent-device.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html