libnvdimm, e820: use module_platform_driver
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 5 Dec 2016 08:23:20 +0000 (09:23 +0100)
committerDan Williams <dan.j.williams@intel.com>
Mon, 5 Dec 2016 16:52:21 +0000 (08:52 -0800)
commit3a71b3c8946fd44cd2599d9e87ac8f90c71318e1
tree917406d2d15ad12d4b89401bb274d2c35825baca
parentb44fe760433a58f2284d2a544afd91dd685ac677
libnvdimm, e820: use module_platform_driver

Use module_platform_driver for the e820 driver instead of open-coding it.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/e820.c