]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: tegra: Remove NULL pointer check before clk_enable/disable/prepare/unprepare
authorSowjanya Komatineni <skomatineni@nvidia.com>
Mon, 27 Jul 2020 20:57:20 +0000 (13:57 -0700)
committerWolfram Sang <wsa@kernel.org>
Tue, 28 Jul 2020 16:31:47 +0000 (18:31 +0200)
commit46a8e96364aaf38efd646f1c6de450a15a7c158f
tree4bc58a339fbba8f37730d3d58932f3a3fbbd6acf
parentf2d4693c005e0ceec1b35edf1e734166ba552791
i2c: tegra: Remove NULL pointer check before clk_enable/disable/prepare/unprepare

clk_enable, clk_disable, clk_prepare, and clk_unprepare APIs have
implementation for checking clk pointer not NULL and clock consumers
can safely call these APIs without NULL pointer check.

So, this patch cleans up Tegra i2c driver to remove explicit checks
before these APIs.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c