aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65090.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/tps65090.c')
-rw-r--r--drivers/mfd/tps65090.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index 9b79d6811cae..f95f7f6b846c 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -263,10 +263,11 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
263 return -EINVAL; 263 return -EINVAL;
264 } 264 }
265 265
266 tps65090 = devm_kzalloc(&client->dev, sizeof(struct tps65090), 266 tps65090 = devm_kzalloc(&client->dev, sizeof(*tps65090), GFP_KERNEL);
267 GFP_KERNEL); 267 if (!tps65090) {
268 if (tps65090 == NULL) 268 dev_err(&client->dev, "mem alloc for tps65090 failed\n");
269 return -ENOMEM; 269 return -ENOMEM;
270 }
270 271
271 tps65090->client = client; 272 tps65090->client = client;
272 tps65090->dev = &client->dev; 273 tps65090->dev = &client->dev;