X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fregulator%2Flp3972.c;h=093e6f44ff8a3e0d9f17eb6cd0001c36d5911b37;hb=b4b50fd78b1e31989940dfc647e64453d0f7176a;hp=573024039ca0c5751fbd5faf31ca2553d0ee91c1;hpb=eed097bd087135fe57471f8815ed1a569bc8260e;p=~andy%2Flinux diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index 573024039ca..093e6f44ff8 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c @@ -519,7 +519,7 @@ static int lp3972_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { struct lp3972 *lp3972; - struct lp3972_platform_data *pdata = i2c->dev.platform_data; + struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev); int ret; u16 val;