]> git.baikalelectronics.ru Git - kernel.git/commit
bfin_mac: Restore hardware time-stamping dependency on BF518
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 10 Jan 2013 04:42:28 +0000 (04:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 22:27:22 +0000 (14:27 -0800)
commita66f4aba38860c26d835ded665a6d7c35377a039
tree8a11de35ac914eced627fc7f1c224c0d0b9bcacf
parentef0d68986ac512fafa4a8930fc41a89ba8f12eef
bfin_mac: Restore hardware time-stamping dependency on BF518

Commit af856c3b65 ("ptp: fixup Kconfig for two PHC drivers.") removed all
dependencies for the blackfin hardware time-stamping Kconfig entry. Hardware
time-stamping is only available on BF518 though. Since the Kconfig entry is
'default y', just updateing your kernel source and running `make defconfig` will
result in the the following build errors:

drivers/net/ethernet/adi/bfin_mac.c:694: error: implicit declaration of function ‘bfin_read_EMAC_PTP_CTL’
drivers/net/ethernet/adi/bfin_mac.c:702: error: implicit declaration of function ‘bfin_write_EMAC_PTP_FV3’
drivers/net/ethernet/adi/bfin_mac.c:712: error: implicit declaration of function ‘bfin_write_EMAC_PTP_CTL’
drivers/net/ethernet/adi/bfin_mac.c:717: error: implicit declaration of function ‘bfin_write_EMAC_PTP_FOFF’
...

This patch adds back the dependency on BF518, and since it does not make sense
to expose this config option when the blackfin MAC driver is not enabled also
restore the dependency on BFIN_MAC.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adi/Kconfig