From: Gaël PORTAY Date: Sat, 6 Sep 2014 17:52:35 +0000 (+0200) Subject: ARM: at91/tclib: move initialization from alloc to probe X-Git-Tag: fixes-for-v3.18-merge-window~6^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4930d247af29f849cd1bddd65be2400684dc886e;p=pandora-kernel.git 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 Acked-by: Thierry Reding Acked-by: Boris Brezillon Signed-off-by: Nicolas Ferre --- Reading git-diff-tree failed