mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
18e6df83bb
This makes the patches and the kernel configuration apply on top of kernel 5.15. The following patch was removed because the old IDE subsystem was removed from upstream kernel: target/linux/bcm47xx/patches-5.15/610-pci_ide_fix.patch This was tested successfully on a ASUS WL-500g Premium V1. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From: Florian Fainelli <f.fainelli@gmail.com>
|
|
Subject: [PATCH v3 1/9] mtd: rawnand: brcmnand: Assign soc as early as possible
|
|
Date: Fri, 07 Jan 2022 10:46:06 -0800
|
|
Content-Type: text/plain; charset="utf-8"
|
|
|
|
In order to key off the brcmnand_probe() code in subsequent changes
|
|
depending upon ctrl->soc, assign that variable as early as possible,
|
|
instead of much later when we have checked that it is non-NULL.
|
|
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
---
|
|
drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
|
|
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
|
|
@@ -2998,6 +2998,7 @@ int brcmnand_probe(struct platform_devic
|
|
|
|
dev_set_drvdata(dev, ctrl);
|
|
ctrl->dev = dev;
|
|
+ ctrl->soc = soc;
|
|
|
|
init_completion(&ctrl->done);
|
|
init_completion(&ctrl->dma_done);
|
|
@@ -3138,8 +3139,6 @@ int brcmnand_probe(struct platform_devic
|
|
* interesting ways
|
|
*/
|
|
if (soc) {
|
|
- ctrl->soc = soc;
|
|
-
|
|
ret = devm_request_irq(dev, ctrl->irq, brcmnand_irq, 0,
|
|
DRV_NAME, ctrl);
|
|
|