commit | 9da32ba64d59d577297bf766a3f12753ebef5712 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Oct 13 00:04:47 2017 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Oct 13 00:10:12 2017 +0200 |
tree | b3d8ba4e5f3f1bf14edb2f06be2b01d47e4248c9 | |
parent | 9360a6a81862d3acfeb44745d9db4f9861ba4159 [diff] |
rtc: abx80x: solve race condition There is a race condition that can happen if abx80x_probe() fails after the rtc registration succeeded. Solve that by moving the registration at the end of the probe function. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>