nvdimm: Fix return value of nvdimm_bus_init() if class_create() fails
authorAxel Lin <axel.lin@ingics.com>
Sun, 28 Jun 2015 09:00:57 +0000 (17:00 +0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 30 Jun 2015 18:30:34 +0000 (14:30 -0400)
commitdaa1dee405d7d3d3e816b84a692e838a5647a02a
tree112850fd03fa7fedd7d71ee2f547d83dd444fd4b
parentaf834d457d9ed69e14836b63d0da198fdd2ec706
nvdimm: Fix return value of nvdimm_bus_init() if class_create() fails

Return proper error if class_create() fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c