mtd: rawnand: mtk: use of_device_get_match_data()
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 16 Apr 2018 02:33:54 +0000 (10:33 +0800)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 29 Apr 2018 06:56:41 +0000 (08:56 +0200)
commit36bf2eb90de03d37e05169be29efd2e959ae27a9
tree0563a460a201529660ddd6d923a0138e4820197f
parent7b4b199459f31541141c4510e542bd4533a60585
mtd: rawnand: mtk: use of_device_get_match_data()

The usage of of_device_get_match_data() reduce the code size a bit.

Also, the only way to call .probe() is to match an entry in
.of_match_table[], so of_device_id cannot be NULL.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Reviewed-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/mtk_ecc.c
drivers/mtd/nand/raw/mtk_nand.c