diff options
author | Keith Busch <keith.busch@intel.com> | 2015-11-28 16:49:22 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-29 14:34:57 -0700 |
commit | c4699e70d1db14119708dae76dac7c43e1e12988 (patch) | |
tree | 62ea32a6868e9e424de64067c1d6aadacfb8654f /drivers/nvme/host/Makefile | |
parent | 77032ca66f86fa631b38b2e7feeb2b953e59f2f0 (diff) |
lightnvm: Simplify config when disabled
We shouldn't compile an object file to get empty implementations;
conforms to linux coding style on conditional compilation.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/Makefile')
-rw-r--r-- | drivers/nvme/host/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/host/Makefile b/drivers/nvme/host/Makefile index 219dc206fa5f..a5fe23952586 100644 --- a/drivers/nvme/host/Makefile +++ b/drivers/nvme/host/Makefile @@ -1,4 +1,5 @@ obj-$(CONFIG_BLK_DEV_NVME) += nvme.o -nvme-y += pci.o scsi.o lightnvm.o +lightnvm-$(CONFIG_NVM) := lightnvm.o +nvme-y += pci.o scsi.o $(lightnvm-y) |