summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-10-12 12:26:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-17 08:45:49 +0200
commit1c256a128362d75dfdb0f41cd8a03a59b8870a8f (patch)
tree88b371b630d28aa6eb57bfbf19d9ebd1eaeb7dd1 /drivers
parente4ec944a644f0f796a96e0909f3212975fd51155 (diff)
downloadbarebox-1c256a128362d75dfdb0f41cd8a03a59b8870a8f.tar.gz
barebox-1c256a128362d75dfdb0f41cd8a03a59b8870a8f.tar.xz
clocksource: sp804: silently ignore secondary instaces
When probing from an upstream DT, we don't always have influence on how many timer instances are enabled. Just use the first one and silently skip the other instances. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clocksource/amba-sp804.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/amba-sp804.c b/drivers/clocksource/amba-sp804.c
index c5ad9947cd..66e3988b4c 100644
--- a/drivers/clocksource/amba-sp804.c
+++ b/drivers/clocksource/amba-sp804.c
@@ -35,8 +35,8 @@ static int sp804_probe(struct amba_device *dev, const struct amba_id *id)
int ret;
if (sp804_base) {
- dev_err(&dev->dev, "single instance driver\n");
- return -EBUSY;
+ dev_dbg(&dev->dev, "skipping secondary instance\n");
+ return 0;
}
sp804_clk = clk_get(&dev->dev, NULL);