mfd: omap-usb-tll: Allocate driver data at once
authorLadislav Michl <ladis@linux-mips.org>
Mon, 15 Jan 2018 20:25:05 +0000 (21:25 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit16c2004d9e4d6e5bc0a81fa811eb6ebab4fb6307
treec17d95b953de0cbbd98bb5c54d7575d112c5a43d
parent46c8aa8e3fe61c7bb5dbbc9db379eeb01dc97472
mfd: omap-usb-tll: Allocate driver data at once

Allocating memory to store clk array together with driver
data simplifies error unwinding and allows deleting memory
allocation failure message as there is now only single point
of failure already covered by allocation failure report.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
[Markus Elfring: simplified error unwinding, error message removal]
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/omap-usb-tll.c