Commit e553fa6e17af10b306b4a42dd19fb23b7254d6a1

Authored by Jingoo Han
Committed by Lee Jones
1 parent 603ab143bd

mfd: mc13xxx: Remove unnecessary spi_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/mfd/mc13xxx-spi.c
... ... @@ -149,7 +149,6 @@
149 149 ret = PTR_ERR(mc13xxx->regmap);
150 150 dev_err(mc13xxx->dev, "Failed to initialize register map: %d\n",
151 151 ret);
152   - spi_set_drvdata(spi, NULL);
153 152 return ret;
154 153 }
155 154