diff options
author | Niklas Cassel <[email protected]> | 2017-12-20 00:29:30 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2017-12-21 11:10:30 +0000 |
commit | f1aba0a0de55c72cded9a8951ef30680e7f46389 (patch) | |
tree | 54f0bed605787961300a20f4a320a5b1d0700eed /drivers/fpga/fpga-mgr.c | |
parent | 71890ea0a0b5632c31be8d81c6c94b6541a898ff (diff) |
PCI: dwc: dra7xx: Help compiler to remove unused code
The dra7xx driver supports both host and ep mode.
When enabling support for only one of the modes, help the compiler
to remove code for the mode that we have not enabled in the driver.
By adding if (!IS_ENABLED(CONFIG_PCI_DRA7XX_HOST)) return -ENODEV;
anything after that statement will get silently dropped by the compiler,
including static functions and structures that are referenced indirectly
from there.
Suggested-by: Arnd Bergmann <[email protected]>
Signed-off-by: Niklas Cassel <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions