aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/tps65912-spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/tps65912-spi.c')
-rw-r--r--drivers/mfd/tps65912-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
index b45f460d299..69a5178bf15 100644
--- a/drivers/mfd/tps65912-spi.c
+++ b/drivers/mfd/tps65912-spi.c
@@ -85,7 +85,8 @@ static int tps65912_spi_probe(struct spi_device *spi)
{
struct tps65912 *tps65912;
- tps65912 = kzalloc(sizeof(struct tps65912), GFP_KERNEL);
+ tps65912 = devm_kzalloc(&spi->dev,
+ sizeof(struct tps65912), GFP_KERNEL);
if (tps65912 == NULL)
return -ENOMEM;