Re: [PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-22 Thread Boris Brezillon
On Mon, 16 Apr 2018 10:33:54 +0800 Ryder Lee wrote: > 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

Re: [PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-22 Thread Boris Brezillon
On Mon, 16 Apr 2018 10:33:54 +0800 Ryder Lee wrote: > 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 > --- >

Re: [PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-15 Thread xiaolei li
On Mon, 2018-04-16 at 10:33 +0800, Ryder Lee wrote: > 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 >

Re: [PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-15 Thread xiaolei li
On Mon, 2018-04-16 at 10:33 +0800, Ryder Lee wrote: > 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 > --- >

[PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
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 --- drivers/mtd/nand/raw/mtk_ecc.c | 7 +--

[PATCH] mtd: nand: mtk: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
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 --- drivers/mtd/nand/raw/mtk_ecc.c | 7 +-- drivers/mtd/nand/raw/mtk_nand.c | 10