Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_at91 only works on sam9

The smc driver used by pata_at91 is at91sam9 specific, so building
this driver on another at91 platform results in this error:

ERROR: "sam9_smc_configure" [drivers/ata/pata_at91.ko] undefined!
ERROR: "sam9_smc_write_mode" [drivers/ata/pata_at91.ko] undefined!
ERROR: "sam9_smc_read_mode" [drivers/ata/pata_at91.ko] undefined!

This patch changes the Kconfig dependency to ensure it always works.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: linux-ide@vger.kernel.org
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>

authored by

Arnd Bergmann and committed by
Tejun Heo
2af89a3c a6f9bf4d

+1 -1
+1 -1
drivers/ata/Kconfig
··· 815 815 816 816 config PATA_AT91 817 817 tristate "PATA support for AT91SAM9260" 818 - depends on ARM && ARCH_AT91 818 + depends on ARM && SOC_AT91SAM9 819 819 help 820 820 This option enables support for IDE devices on the Atmel AT91SAM9260 SoC. 821 821