diff options
| -rw-r--r-- | drivers/soc/amlogic/meson-gx-socinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/amlogic/meson-gx-socinfo.c b/drivers/soc/amlogic/meson-gx-socinfo.c index c8d138d85f34..bca34954518e 100644 --- a/drivers/soc/amlogic/meson-gx-socinfo.c +++ b/drivers/soc/amlogic/meson-gx-socinfo.c | |||
| @@ -132,8 +132,10 @@ static int __init meson_gx_socinfo_init(void) | |||
| 132 | return -ENODEV; | 132 | return -ENODEV; |
| 133 | 133 | ||
| 134 | /* check if interface is enabled */ | 134 | /* check if interface is enabled */ |
| 135 | if (!of_device_is_available(np)) | 135 | if (!of_device_is_available(np)) { |
| 136 | of_node_put(np); | ||
| 136 | return -ENODEV; | 137 | return -ENODEV; |
| 138 | } | ||
| 137 | 139 | ||
| 138 | /* check if chip-id is available */ | 140 | /* check if chip-id is available */ |
| 139 | if (!of_property_read_bool(np, "amlogic,has-chip-id")) | 141 | if (!of_property_read_bool(np, "amlogic,has-chip-id")) |
