Commit 16e57a7
drm/vc4: hdmi: Fix some NULL vs IS_ERR() bugs
The devm_platform_ioremap_resource_byname() function doesn't return NULL,
it returns error pointers. Update the checking to match.
Fixes: b93f07c ("drm/vc4: move to devm_platform_ioremap_resource() usage")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maxime Ripard <[email protected]>1 parent 30188df commit 16e57a7
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2928 | 2928 | | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | | - | |
2932 | | - | |
| 2931 | + | |
| 2932 | + | |
2933 | 2933 | | |
2934 | 2934 | | |
2935 | 2935 | | |
| |||
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
2949 | | - | |
2950 | | - | |
| 2949 | + | |
| 2950 | + | |
2951 | 2951 | | |
2952 | 2952 | | |
2953 | 2953 | | |
2954 | | - | |
2955 | | - | |
| 2954 | + | |
| 2955 | + | |
2956 | 2956 | | |
2957 | 2957 | | |
2958 | 2958 | | |
2959 | | - | |
2960 | | - | |
| 2959 | + | |
| 2960 | + | |
2961 | 2961 | | |
2962 | 2962 | | |
2963 | 2963 | | |
2964 | 2964 | | |
2965 | | - | |
2966 | | - | |
| 2965 | + | |
| 2966 | + | |
2967 | 2967 | | |
2968 | 2968 | | |
2969 | 2969 | | |
2970 | | - | |
2971 | | - | |
| 2970 | + | |
| 2971 | + | |
2972 | 2972 | | |
2973 | 2973 | | |
2974 | | - | |
2975 | | - | |
| 2974 | + | |
| 2975 | + | |
2976 | 2976 | | |
2977 | 2977 | | |
2978 | 2978 | | |
| |||
0 commit comments