[PATCH 1/3] pwm-core: fix compilation when OF is not selected

Thierry Reding thierry.reding at avionic-design.de
Sun Apr 29 13:04:31 EDT 2012


* Eric Bénard wrote:
> else we get the following error :
> drivers/pwm/core.c: In function 'pwm_get':
> drivers/pwm/core.c:538:3: error: implicit declaration of function 'of_pwm_request' [-Werror=implicit-function-declaration]
> 
> Signed-off-by: Eric Bénard <eric at eukrea.com>

This is solved a little differently in the latest patches. That no longer has
the of_pwm_request() function protected by #ifdef CONFIG_OF, but rather calls
it in a IS_ENABLED(CONFIG_OF)-protected block so that it will still receive
compile coverage in !OF configurations but at the same time will be removed
by the compiler's dead code elimination.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120429/60616669/attachment.sig>


More information about the linux-arm-kernel mailing list