]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Input: bu21013_ts - request regulator that actually exists
authorLee Jones <lee.jones@linaro.org>
Thu, 22 Nov 2012 03:11:46 +0000 (19:11 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 28 Nov 2012 06:45:35 +0000 (22:45 -0800)
Currently the BU21013 Touch Screen driver requests a regulator by the
name of 'V-TOUCH', which doesn't exist anywhere in the kernel. The
correct name, as referenced in platform regulator code is 'avdd'. Here,
when we request a regulator, we use the correct name instead.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/bu21013_ts.c

index 59a8ce86fcda36e6ae1fb00524c2acc6f0cc43da..1e8cddd06c60bd64e05c306875f1ff2426d94621 100644 (file)
@@ -461,7 +461,7 @@ static int bu21013_probe(struct i2c_client *client,
        bu21013_data->chip = pdata;
        bu21013_data->client = client;
 
-       bu21013_data->regulator = regulator_get(&client->dev, "V-TOUCH");
+       bu21013_data->regulator = regulator_get(&client->dev, "avdd");
        if (IS_ERR(bu21013_data->regulator)) {
                dev_err(&client->dev, "regulator_get failed\n");
                error = PTR_ERR(bu21013_data->regulator);