mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 09:54:53 +00:00
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>
This commit is contained in:
parent
b672550b32
commit
9c26def64a
@ -183,8 +183,8 @@ static int ag71xx_mdio_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
am->mii_regmap = syscon_regmap_lookup_by_phandle(np, "regmap");
|
||||
if (!am->mii_regmap)
|
||||
return -ENOENT;
|
||||
if (IS_ERR(am->mii_regmap))
|
||||
return PTR_ERR(am->mii_regmap);
|
||||
|
||||
mii_bus = devm_mdiobus_alloc(amdev);
|
||||
if (!mii_bus)
|
||||
|
Loading…
Reference in New Issue
Block a user