aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTim Niemeyer <tim.niemeyer@mastersword.de>2009-03-27 17:27:53 +0100
committerWerner Almesberger <werner@openmoko.org>2009-03-31 04:34:25 -0300
commit18f5e41da61cfb512042c1978e24e07bde6917cf (patch)
tree62865fdd7acd05f3127d497f63a0b4dcafd92bdf /arch
parent8ce8fdbdb2d1ea30109aa816b9557dbf37ea58ad (diff)
remove sysfs-links on remove
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c24xx/neo1973_pm_gps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
index b5322f200b4..93b491137e7 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
@@ -764,6 +764,7 @@ static int gta01_pm_gps_remove(struct platform_device *pdev)
regulator_put(neo1973_gps.regulator[i]);
}
#endif
+ bus_remove_device_link(&platform_bus_type, "gta01-pm-gps.0");
sysfs_remove_group(&pdev->dev.kobj, &gta01_gps_attr_group);
}