It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool().
Unified · Split
| @@ -1361,7 +1361,7 @@ int snd_pmac_tumbler_init(struct snd_pmac *chip) · 1360 unmodified lines | ||
| 1361 | 1361 | |
| 1362 | 1362 | for_each_child_of_node(chip->node, np) { |
| 1363 | 1363 | if (of_node_name_eq(np, "sound")) { |
| 1364 | − if (of_get_property(np, "has-anded-reset", NULL)) | |
| 1364 | + if (of_property_read_bool(np, "has-anded-reset")) | |
| 1365 | 1365 | mix->anded_reset = 1; |
| 1366 | 1366 | if (of_property_present(np, "layout-id")) |
| 1367 | 1367 | mix->reset_on_sleep = 0; |