]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: pxa: fix pxa_ssp_* declarations
authorArnd Bergmann <arnd@arndb.de>
Tue, 18 Feb 2014 15:33:07 +0000 (16:33 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:26:03 +0000 (18:26 +0100)
commit6f9ff86503bc49cd3818ec4bba78e3447588ee5c
treec4970ab9a38c069ce456e0b51a8f2b90b7739a22
parentcb1a37ede8c2651fe105a58bab1b0bdd0f65c6fa
ARM: pxa: fix pxa_ssp_* declarations

The functions declared in include/linux/pxa2xx_ssp.h are
defined in plat-pxa/ssp.c, which can also be built for
PLAT_MMP, but may be disabled there. This can lead to
both unresolved symbols at link time and to duplicate
symbols at compile time for random configurations.

Changing the #ifdef in the header file to match the
Kconfig symbol that decides if the file is built solves
both problems.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Daniel Mack <zonque@gmail.com>
include/linux/pxa2xx_ssp.h