diff options
author | Chris Zhong <[email protected]> | 2017-03-08 10:27:55 +0800 |
---|---|---|
committer | Sean Paul <[email protected]> | 2017-03-13 15:59:10 -0400 |
commit | a68b5bb6708e73d58b30680421df8166898e5cfc (patch) | |
tree | 66ff0685a33af66a3cba47b39b1afe87e870fdbf /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | a45216547e8925078b18b2a6b539100c3814e973 (diff) |
drm/rockchip: cdn-dp: return error code when clk_get_rate failed
The clk_get_rate return 0 if something goes wrong, so it can never be
less then zero, the ret should be set a error code, otherwise the
cdn_dp_clk_enable will return 0 when it failed at clk_get_rate.
In addition, clk_get_rate() returns an "unsigned long", so use
"unsigned long" instead of "u32" is better.
Signed-off-by: Chris Zhong <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions