Re: [PATCH] mmc: mediatek: use of_device_get_match_data()

2018-04-19 Thread Ulf Hansson
On 16 April 2018 at 04:33, Ryder Lee wrote: > The usage of of_device_get_match_data() reduce the code size a bit. > > Also, the only way to call msdc_drv_probe() is to match an entry in > msdc_of_ids[], so of_id cannot be NULL. > > Signed-off-by: Ryder Lee Thanks, applied for next! Kind regards

[PATCH] mmc: mediatek: 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 msdc_drv_probe() is to match an entry in msdc_of_ids[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/mmc/host/mtk-sd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) di