]> git.baikalelectronics.ru Git - kernel.git/commit
bus: brcmstb_gisb: resolve section mismatch
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 20 Nov 2014 18:14:46 +0000 (10:14 -0800)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Nov 2014 11:32:43 +0000 (12:32 +0100)
commit215b67e03aaa17a28de81bcd15c6469755674140
tree05dcac949ede6d728abe7f88c25edef2d5088a7d
parentb50731f19846a6823a0c4f87d4b22f66cc02db64
bus: brcmstb_gisb: resolve section mismatch

Commit f28978c5215b moved the call to hook_fault_code in
brcmstb_gisb_arb_probe() which now calls a function annotated with __init, so
this one must also be annotated with __init.

In order to avoid introducing another section mismatch, call
platform_driver_probe() manually and remove the .probe assignment from
brcmstb_gisb_arb_driver, this is very similar to what
drivers/pci/host/pci-imx6.c does since we basically have the same constraints
here.

Fixes: f28978c5215b ("bus: brcmstb_gisb: register the fault code hook")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/brcmstb_gisb.c