soc: brcmstb: biuctrl: exit without warning on non brcmstb platforms
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 12 Jan 2018 21:08:14 +0000 (13:08 -0800)
committerArnd Bergmann <arnd@arndb.de>
Mon, 15 Jan 2018 14:46:17 +0000 (15:46 +0100)
commita78182980a2a0045d5971a656248a62d62237234
tree8d9a7fe6631af8b88fc8846af3bdadf2996a0aaf
parentc90801664e0a7e80dfd502a4cef8452dc203ce1f
soc: brcmstb: biuctrl: exit without warning on non brcmstb platforms

Currently if this driver is included, we get the following warning
on any platforms irrespective of whether it's brcmstb platform or not.
"
 brcmstb: biuctrl: missing BIU control node
 brcmstb: biuctrl: MCP: Unable to disable write pairing!
"

This patch allows to exit early without any warning messages on non
brcmstb platforms as it's meaningless for them.

Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Gregory Fong <gregory.0xf0@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: bcm-kernel-feedback-list@broadcom.com
Fixes: f780429adfbc ("soc: brcmstb: biuctrl: Move to early_initcall")
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
[florian: Add fixes tag, make initcall non fatal]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/bcm/brcmstb/biuctrl.c