i2c: tegra: Clean up probe function
authorDmitry Osipenko <digetx@gmail.com>
Tue, 29 Sep 2020 22:18:57 +0000 (01:18 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Oct 2020 20:57:41 +0000 (22:57 +0200)
commit55c52f16a017ca3b1546709f8cfa5a4c856926eb
tree251bc3c51df5795fa8a0ce6ad617778129aca815
parent6fe3e2015faaf85e4c81b86f733316820e4af249
i2c: tegra: Clean up probe function

The driver's probe function code is a bit difficult to read. This patch
reorders code of the probe function, forming groups of code that are easy
to work with. The probe tear-down order now matches the driver-removal
order.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c