]> 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)
commit70fa18fee95649cccb908dccefe46019f3281730
treec17d95b953de0cbbd98bb5c54d7575d112c5a43d
parentbda47b61a1c58c2c77dd35d3b05cce190f9fca7d
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