block: pmem: Add dependency on HAS_IOMEM
authorRichard Weinberger <richard@nod.at>
Mon, 4 May 2015 18:58:57 +0000 (20:58 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 11 Jun 2015 21:54:58 +0000 (15:54 -0600)
commitb6f2098fb708ce935a59763178c4e8cd942fcf88
treee1e469c27674971d8820a656a1b866b0c577e73f
parent4d66e5e9b6d720d8463e11d027bd4ad91c8b1318
block: pmem: Add dependency on HAS_IOMEM

Not all architectures have io memory.

Fixes:
drivers/block/pmem.c: In function ‘pmem_alloc’:
drivers/block/pmem.c:146:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration]
  pmem->virt_addr = ioremap_nocache(pmem->phys_addr, pmem->size);
  ^
drivers/block/pmem.c:146:18: warning: assignment makes pointer from integer without a cast [enabled by default]
  pmem->virt_addr = ioremap_nocache(pmem->phys_addr, pmem->size);
                  ^
drivers/block/pmem.c:182:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
  iounmap(pmem->virt_addr);
  ^

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/Kconfig