]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: disable ptp object build if no config
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Sat, 26 Oct 2019 11:05:34 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Oct 2019 18:28:40 +0000 (11:28 -0700)
commita9a003ac0f8afd07e34afbae769434c6b79f67a1
tree653161b3b365ba0b7d9e99e12f4db4db0dbf8144
parent98ffb9c3207c5242edc22660d8e6e4834d0387a7
net: aquantia: disable ptp object build if no config

We do disable aq_ptp module build using inline
stubs when CONFIG_PTP_1588_CLOCK is not declared.

This reduces module size and removes unnecessary code.

Reported-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/Makefile
drivers/net/ethernet/aquantia/atlantic/aq_ptp.h