mtd: atmel_nand: Use of_device_get_match_data
authorRomain Izard <romain.izard.pro@gmail.com>
Fri, 15 Jan 2016 10:34:57 +0000 (11:34 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 23 Jan 2016 23:03:48 +0000 (15:03 -0800)
commit8ce06d379a06b4d5c9f944bb60e80b084d16bfc0
treedcfc52573f264971320aef3a83aed97e780fa367
parente88b7f7d6ca47531af602cfb6abdb31ea13eabc3
mtd: atmel_nand: Use of_device_get_match_data

Remove the need for forward declaration and the risk for a null pointer
when accessing the private part of the compatible match table, by using
the newly introduced of_device_get_match_data function.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c