Message ID | a0661b85-bdc8-baed-c3a6-adaa383ea30d@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index 75170a7439b1..5b2756ec1766 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -227,10 +227,8 @@ static int tps6507x_ts_probe(struct platform_device *pdev) init_data = tps_board->tps6507x_ts_init_data; tsc = devm_kzalloc(&pdev->dev, sizeof(struct tps6507x_ts), GFP_KERNEL); - if (!tsc) { - dev_err(tps6507x_dev->dev, "failed to allocate driver data\n"); + if (!tsc) return -ENOMEM; - } tsc->mfd = tps6507x_dev; tsc->dev = tps6507x_dev->dev;