diff options
author | Igor Russkikh <Igor.Russkikh@aquantia.com> | 2019-10-26 13:05:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-26 20:28:40 +0200 |
commit | 7873ee26b10bcb03553b6a26ec16b9a937a5b916 (patch) | |
tree | 653161b3b365ba0b7d9e99e12f4db4db0dbf8144 /drivers/net/ethernet/aquantia/atlantic/Makefile | |
parent | net: aquantia: fix warnings on endianness (diff) | |
download | linux-7873ee26b10bcb03553b6a26ec16b9a937a5b916.tar.xz linux-7873ee26b10bcb03553b6a26ec16b9a937a5b916.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/Makefile')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/Makefile b/drivers/net/ethernet/aquantia/atlantic/Makefile index 68c41141ede2..0020726db204 100644 --- a/drivers/net/ethernet/aquantia/atlantic/Makefile +++ b/drivers/net/ethernet/aquantia/atlantic/Makefile @@ -24,10 +24,11 @@ atlantic-objs := aq_main.o \ aq_ethtool.o \ aq_drvinfo.o \ aq_filters.o \ - aq_ptp.o \ aq_phy.o \ hw_atl/hw_atl_a0.o \ hw_atl/hw_atl_b0.o \ hw_atl/hw_atl_utils.o \ hw_atl/hw_atl_utils_fw2x.o \ hw_atl/hw_atl_llh.o + +atlantic-$(CONFIG_PTP_1588_CLOCK) += aq_ptp.o
\ No newline at end of file |