Commit c6c247a
crypto: artpec6 - Simplify with of_device_get_match_data()
Driver's probe function matches against driver's of_device_id table, so
of_match_node() can be simplified with of_device_get_match_data().
This requires changing the enum used in the driver match data entries to
non-zero, to be able to recognize error case of
of_device_get_match_data().
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent 6b94eb6 commit c6c247a
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
2842 | 2842 | | |
2843 | 2843 | | |
2844 | 2844 | | |
2845 | | - | |
2846 | 2845 | | |
2847 | 2846 | | |
2848 | 2847 | | |
| |||
2853 | 2852 | | |
2854 | 2853 | | |
2855 | 2854 | | |
2856 | | - | |
2857 | | - | |
| 2855 | + | |
| 2856 | + | |
2858 | 2857 | | |
2859 | 2858 | | |
2860 | | - | |
2861 | | - | |
2862 | 2859 | | |
2863 | 2860 | | |
2864 | 2861 | | |
| |||
0 commit comments