diff options
author | Gaël PORTAY <[email protected]> | 2014-09-06 19:52:35 +0200 |
---|---|---|
committer | Nicolas Ferre <[email protected]> | 2014-09-08 10:54:03 +0200 |
commit | 4930d247af29f849cd1bddd65be2400684dc886e (patch) | |
tree | 8afec844dc080e009e2e1d52e59e1e72339fe2be /include/linux/fpga/fpga-mgr.h | |
parent | 8495497f921e73d5192d4896d55414f0304d8561 (diff) |
ARM: at91/tclib: move initialization from alloc to probe
Move resource retrieval from atmel_tc_alloc to tc_probe to avoid lately
reporting resource related issues when a TC block user request a TC block.
Moreover, resources retrieval are usually done in the probe function,
thus moving them add some consistency with other drivers.
Initialization is done once, ie not every time a tc block is requested.
If it fails, the device is not appended to the list of tc blocks.
Furhermore, the device id is retrieved at probe as well, avoiding parsing
DT every time the user requests of tc block.
Signed-off-by: Gaël PORTAY <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions