]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: tegra: Turn into regular driver
authorThierry Reding <treding@nvidia.com>
Mon, 27 May 2019 10:13:59 +0000 (12:13 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 1 Jun 2019 20:38:56 +0000 (22:38 +0200)
commitfe86a3fa00e3f3576ca5f432af27a05ef75cced5
treec877a798a1e1b1637922c8786c87b5631f95a066
parent7a5797eff00fd4458794edb4adf9405b9a3b30c3
rtc: tegra: Turn into regular driver

Drivers registered with module_platform_driver_probe() are considered
non-hotpluggable, which among other things means that they don't support
deferred probe. However, recent changes in how the ARM SMMU works have
required the BPMP (which is the clock provider on Tegra186 and later) be
bound to the SMMU, which in turn means that the BPMP driver can defer
probe and hence clocks become available much later than they used to.
For most other drivers this is not a problem because they already
properly support deferred probe, but rtc-tegra is the odd one out that
now fails to probe and will therefore never be registered.

Fix this by making the driver a regular driver that supports unloading
and deferred probe.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tegra.c