diff options
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_bt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |