]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1931cb9ab7fa9316da30a0fdda1f208e3b8b086
treec17d95b953de0cbbd98bb5c54d7575d112c5a43d
parentc1ff155fcdcc3ff6a373e6d225d57d9eb721707f
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