diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-07-09 13:28:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-10 12:36:28 +0200 |
commit | 1d2d116a93f0e9bf0bca72da76a96edef8a1d36d (patch) | |
tree | 0c7e74c9d0cf421bc60fcb94c3fc7d9e871b748b /drivers/staging/mt7621-pinctrl | |
parent | 0be0debe4a8a6ff0c7b79ca7c16a656204651a69 (diff) |
Revert "staging: mt7621-pinctrl: replace core_initcall_sync with builtin_platform_driver"
That patch causes the network interface on the device to stop working.
device_initcall() is called much later than core_initcall_sync() and
that seem to be a problem. Revert it to get a correct behaviour.
Reported-by: NeilBrown <neil@brown.name>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-pinctrl')
-rw-r--r-- | drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c index c223ecb3ad3f..b8566ed898f1 100644 --- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c +++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c @@ -423,4 +423,9 @@ static struct platform_driver rt2880_pinmux_driver = { }, }; -builtin_platform_driver(rt2880_pinmux_driver); +int __init rt2880_pinmux_init(void) +{ + return platform_driver_register(&rt2880_pinmux_driver); +} + +core_initcall_sync(rt2880_pinmux_init); |