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)
commit7873ee26b10bcb03553b6a26ec16b9a937a5b916
tree653161b3b365ba0b7d9e99e12f4db4db0dbf8144
parent5eeb6c3cf26eac522df07bee1a58573804179126
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