ath79: fix unaligned access panic in ag71xx_mdio_probe
authorMatt Merhar <mattmerhar@protonmail.com>
Thu, 30 Aug 2018 12:58:26 +0000 (08:58 -0400)
committerMathias Kresin <dev@kresin.me>
Thu, 6 Sep 2018 19:35:53 +0000 (21:35 +0200)
commit9c26def64ad9891a036dcabcde11d58ecd59e8f4
tree5038401a60465824c27e5e8e241ff0def3580831
parentb672550b3234bacf347e1adefb529f87f799aada
ath79: fix unaligned access panic in ag71xx_mdio_probe

Without "syscon" being present in an ag71xx ethernet DT node's
compatible property, a panic occurs at boot during probe citing
"Unhandled kernel unaligned access".

With this modification, the panic no longer occurs and instead the probe
simply fails, allowing the boot process to continue.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c