i2c: tegra: remove BUG() macro
authorBitan Biswas <bbiswas@nvidia.com>
Tue, 18 Jun 2019 11:09:42 +0000 (04:09 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 21 Jun 2019 21:25:22 +0000 (23:25 +0200)
commit57ca968b69ecb741f6f8e643666e21635b6828bc
treefe862a9368f1e508c88bfed58d6059d78f03a3a3
parent9be1485accd4a0375170b93f90894e7728029078
i2c: tegra: remove BUG() macro

The usage of BUG() macro is generally discouraged in kernel, unless
it's a problem that results in a physical damage or loss of data.
This patch removes unnecessary BUG() macros and replaces the rest
with warning.

Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c