diff options
author | Chen-Yu Tsai <[email protected]> | 2014-09-01 22:28:13 +0800 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2014-09-02 12:34:08 +0200 |
commit | 0ce4bc1dbdd911ae1763e2d4ff36bd1b214a59f7 (patch) | |
tree | 0e2c99c48bb50cbafa8c9e3d5641067a720fd24b /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dd318b0df27c582ac0d72a346fd6e693700be23c (diff) |
i2c: mv64xxx: continue probe when clock-frequency is missing
The "clock-frequency" DT property is listed as optional, However,
the current code stores the return value of of_property_read_u32 in
the return code of mv64xxx_of_config, but then forgets to clear it
after setting the default value of "clock-frequency". It is then
passed out to the main probe function, resulting in a probe failure
when "clock-frequency" is missing.
This patch checks and then throws away the return value of
of_property_read_u32, instead of storing it and having to clear it
afterwards.
This issue was discovered after the property was removed from all
sunxi DTs.
Fixes: 4c730a06c19bb ("i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided")
Signed-off-by: Chen-Yu Tsai <[email protected]>
Cc: [email protected]
Acked-by: Andrew Lunn <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions