linux/arch/arm/mach-at91
Arnd Bergmann be36e000bc ARM: at91: fix at91_suspend_entering_slow_clock link error
When CONFIG_ARCH_AT91 is enabled, but none of the specific SoC support
is in use, some at91 specific drivers fail to link:

drivers/tty/serial/atmel_serial.o: In function `atmel_serial_suspend':
atmel_serial.c:(.text.atmel_serial_suspend+0x1e): undefined reference to `at91_suspend_entering_slow_clock'
drivers/usb/host/ohci-at91.o: In function `ohci_hcd_at91_drv_suspend':
ohci-at91.c:(.text.ohci_hcd_at91_drv_suspend+0x12): undefined reference to `at91_suspend_entering_slow_clock'
drivers/usb/gadget/udc/at91_udc.o: In function `at91udc_suspend':
at91_udc.c:(.text.at91udc_suspend+0x26): undefined reference to `at91_suspend_entering_slow_clock'

This changes the at91_suspend_entering_slow_clock hack once more, adding
an alternative inline implementation that is used exactly in those cases
that don't provide the normal implementation.

Fixes: c1892c2379d2 ("ARM: at91: handle CONFIG_PM for armv7m configurations")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2017-06-13 11:51:11 +02:00
..
at91rm9200.c ARM: at91: move SoC detection to its own driver 2017-03-31 20:36:10 +02:00
at91sam9.c ARM: at91: move SoC detection to its own driver 2017-03-31 20:36:10 +02:00
generic.h ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
Kconfig ARM: at91: handle CONFIG_PM for armv7m configurations 2017-06-02 10:11:44 +02:00
Makefile ARM: at91: handle CONFIG_PM for armv7m configurations 2017-06-02 10:11:44 +02:00
Makefile.boot ARM: at91: Add armv7m support 2017-06-02 10:11:38 +02:00
pm_data-offsets.c ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
pm_suspend.S ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
pm.c ARM: at91: pm: fallback to slowclock when backup mode fails 2017-05-15 11:55:33 +02:00
pm.h ARM: at91: pm: allow selecting standby and suspend modes 2017-05-15 11:55:24 +02:00
sama5.c ARM: at91: pm: Add sama5d2 backup mode 2017-05-15 11:55:17 +02:00
samv7.c ARM: at91: fix at91_suspend_entering_slow_clock link error 2017-06-13 11:51:11 +02:00