commit | eda7d46da443e154cbc8f7c1d68acc5088d38181 | [log] [tgz] |
---|---|---|
author | Ryder Lee <ryder.lee@mediatek.com> | Mon Apr 16 10:33:41 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 16 13:43:07 2018 -0400 |
tree | 98b838c100a21f4b35e9c18df1634a67b9418f2d | |
parent | 5d1365940a68dd57b031b6e3c07d7d451cd69daf [diff] |
net: mediatek: 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 mtk_probe() is to match an entry in of_mtk_match[], so match cannot be NULL. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>