msm: ramdump: Add parent link to miscdevice
Set the parent of the miscdevice created in
create_ramdump_device() to be the platform device for each
processor. This allows us to easily locate ramdump devices for a
particular processor.
Change-Id: I7241e57231ad3f6a60d799be094d2b7a7fc40a3d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/pil-modem.c b/arch/arm/mach-msm/pil-modem.c
index dfd3c2d..94f545e 100644
--- a/arch/arm/mach-msm/pil-modem.c
+++ b/arch/arm/mach-msm/pil-modem.c
@@ -498,7 +498,7 @@
goto err_subsys;
}
- drv->ramdump_dev = create_ramdump_device("modem");
+ drv->ramdump_dev = create_ramdump_device("modem", &pdev->dev);
if (!drv->ramdump_dev) {
ret = -ENOMEM;
goto err_ramdump;