]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: ti_am335x_tscadc: Move the driver structure allocation earlier
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 08:14:34 +0000 (10:14 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 20 Oct 2021 16:26:04 +0000 (17:26 +0100)
commitc147770a93887eae51ef6e11843e90b9d5eeaa55
treeab073502636eddfdceed649d2066e1c5baf6a1ff
parent2342e795d348bbdc3f3200fc0c30ee52752dc0db
mfd: ti_am335x_tscadc: Move the driver structure allocation earlier

Allocating the driver structure should be done earlier in the probe so
that we can used its members from the beginning.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-17-miquel.raynal@bootlin.com
drivers/mfd/ti_am335x_tscadc.c