]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: nand: tango: Export OF device ID table as module aliases
authorAndres Galacho <andresgalacho@gmail.com>
Mon, 1 May 2017 20:30:15 +0000 (16:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 13:07:41 +0000 (15:07 +0200)
commit6d916021a189921c97c64feb641f9c7f60329f26
treec14ace6ff4a2ebd791cc7bd2f274c93d45b4dac3
parentf0aa7a0415dcde49767688ad194bc8f4abad18fc
mtd: nand: tango: Export OF device ID table as module aliases

commit 2761b4f12b017f6d3e5add386733a700a490df47 upstream.

The device table is required to load modules based on
modaliases. After adding MODULE_DEVICE_TABLE, below entries
for example will be added to module.alias:
alias:          of:N*T*Csigma,smp8758-nandC*
alias:          of:N*T*Csigma,smp8758-nand

Fixes: 6956e2385a16 ("mtd: nand: add tango NAND flash controller support")
Signed-off-by: Andres Galacho <andresgalacho@gmail.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/tango_nand.c