mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-21 00:02:26 +01:00
airoha: fix kernel panic from I2S driver
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Commit8f1914053b("airoha: replace I2S patch with upstream pending version") introduced a kernel panic with I2S driver. Add the fixed patch to fix the kernel panic. Fixes:8f1914053b("airoha: replace I2S patch with upstream pending version") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
7b55651e61
commit
cc57e155a6
1 changed files with 4 additions and 4 deletions
|
|
@ -499,6 +499,10 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|||
+ if (!afe->platform_priv)
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ afe_priv = afe->platform_priv;
|
||||
+ afe->dev = &pdev->dev;
|
||||
+ dev = afe->dev;
|
||||
+
|
||||
+ reset = devm_reset_control_get_exclusive(dev, NULL);
|
||||
+ if (IS_ERR(reset))
|
||||
+ return PTR_ERR(reset);
|
||||
|
|
@ -508,10 +512,6 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|||
+ usleep_range(10, 20);
|
||||
+ reset_control_deassert(reset);
|
||||
+
|
||||
+ afe_priv = afe->platform_priv;
|
||||
+ afe->dev = &pdev->dev;
|
||||
+ dev = afe->dev;
|
||||
+
|
||||
+ afe->base_addr = devm_platform_ioremap_resource(pdev, 0);
|
||||
+ if (IS_ERR(afe->base_addr))
|
||||
+ return PTR_ERR(afe->base_addr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue