]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: mtk: use IS_ERR_VALUE() to check rate return values
authorDavid Lechner <dlechner@baylibre.com>
Wed, 14 Jan 2026 22:58:57 +0000 (16:58 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 21 Jan 2026 19:30:58 +0000 (13:30 -0600)
commit80cb8a0e895d5ec835dda0ebaf14e293b4039c60
tree6d1df9cf7433ab9ac2c8950abaf9716b372e2b9e
parent04413ed0c1bde24bdb4a15e5d75a33f1f3fa8bfa
clk: mtk: use IS_ERR_VALUE() to check rate return values

Replace casting with long to IS_ERR_VALUE() macro to check for error
return values from rate calculation functions. This is the recommended
way to check the return value from clock rate functions.

Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/clk/mediatek/clk-mtk.c