]> 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)
commit6ab1e0cb8772c5bc08b8e7e8a99c5ddd075ac6a3
tree653161b3b365ba0b7d9e99e12f4db4db0dbf8144
parent3c6d477ce52e2aab46459041f9e9260151a44088
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