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)
commit6147947922fc8e4d15296ed69bf886fbe139042a
treeab073502636eddfdceed649d2066e1c5baf6a1ff
parent8543537c7d9994335fd53659d44934a2cabac2f5
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