From 38ffd1ab3286b0cbdab30ab30214738f440c1924 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 1 Dec 2008 11:50:59 +0000 Subject: fix-pm-bt-gta01-no-dev-set-drvdata.patch Sean noticed that the fixes yesterday for pm_bt only set the drvdata on GTA02 path, it will trash GTA01 operation of it. Reported-by: Sean McNeil Signed-off-by: Andy Green --- arch/arm/plat-s3c24xx/neo1973_pm_bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/plat-s3c24xx') diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c index 217fcf05953..51f736618bd 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c @@ -217,6 +217,7 @@ static int __init gta01_bt_probe(struct platform_device *pdev) dev_info(&pdev->dev, DRVMSG ": starting\n"); bt_data = kzalloc(sizeof(*bt_data), GFP_KERNEL); + dev_set_drvdata(&pdev->dev, bt_data); if (machine_is_neo1973_gta01()) { /* we make sure that the voltage is off */ @@ -231,7 +232,6 @@ static int __init gta01_bt_probe(struct platform_device *pdev) return -ENODEV; bt_data->regulator = regulator; - dev_set_drvdata(&pdev->dev, bt_data); /* this tests the true physical state of the regulator... */ if (regulator_is_enabled(regulator)) { -- cgit v1.2.3