Subject: linux-next: libahci_platform has undefined symbol on sparc

From: Yann Droneaud <[email-masked]>
Date: Sat, 31 Jan 2015 14:14:10 +0100

Hi,

I've seen another issue regarding commit c7d7ddee7e24eedde6149eefbcfbfbc7125b9ff0
("ata: libahci: Allow using multiple regulators") from linux-next:
This commit modify ahci_platform_get_resources to use of_platform_device_create().

Unfortunately, it seems that of_platform_device_create() is not
available on sparc (see CONFIG_OF_ADDRESS), so when built for sparc,
the module libahci_platform.ko is rejected by modpost:

  ERROR: "of_platform_device_create" [drivers/ata/libahci_platform.ko] undefined!
  ../scripts/Makefile.modpost:91: recipe for target '__modpost' failed
  make[2]: *** [__modpost] Error 1
  src/linux/Makefile:1120: recipe for target 'modules' failed

Regards.

-- 
Yann Droneaud
OPTEYA