mtd: core: set some defaults when dev.parent is set
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:16 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 16:21:13 +0000 (09:21 -0700)
commit807f16d4db956b364ae852a63ad7d79460838866
tree9808c8bc44b0eb89013c0ede18f3091e822f829c
parent260e89a6e0d6dcaccd484cf13a69285c3d22268f
mtd: core: set some defaults when dev.parent is set

If a parent device is set, add_mtd_device() has enough knowledge to fill
in some sane default values for the module name and owner. Do so if they
aren't already set.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdcore.c