Skip to content

Commit 3ac02aa

Browse files
committed
Merge tag 'arm-soc/for-6.4/drivers' of https://github.com/Broadcom/stblinux into soc/drivers
This pull request contains Broadcom SoCs drivers changes for 6.4, please pull the following: - Zhaoyang fixes an of_iomap() leak in the STB BIU driver - Florian removes the bare-metal ARM suspend/resume code which has long been replaced by the standard PSCI suspend/resume. * tag 'arm-soc/for-6.4/drivers' of https://github.com/Broadcom/stblinux: soc: bcm: brcmstb: biuctrl: fix of_iomap leak soc: bcm: brcmstb: Remove bare-metal ARM suspend/resume code kbuild, soc: bcm: bcm2835-power: remove MODULE_LICENSE in non-modules kbuild, soc: bcm: raspberrypi-power: remove MODULE_LICENSE in non-modules bus: brcmstb_gisb: Use devm_platform_get_and_ioremap_resource() Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 126c6da + c3fbced commit 3ac02aa

File tree

9 files changed

+6
-1057
lines changed

9 files changed

+6
-1057
lines changed

drivers/bus/brcmstb_gisb.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,10 @@ static int __init brcmstb_gisb_arb_probe(struct platform_device *pdev)
401401
struct device_node *dn = pdev->dev.of_node;
402402
struct brcmstb_gisb_arb_device *gdev;
403403
const struct of_device_id *of_id;
404-
struct resource *r;
405404
int err, timeout_irq, tea_irq, bp_irq;
406405
unsigned int num_masters, j = 0;
407406
int i, first, last;
408407

409-
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
410408
timeout_irq = platform_get_irq(pdev, 0);
411409
tea_irq = platform_get_irq(pdev, 1);
412410
bp_irq = platform_get_irq(pdev, 2);
@@ -418,7 +416,7 @@ static int __init brcmstb_gisb_arb_probe(struct platform_device *pdev)
418416
mutex_init(&gdev->lock);
419417
INIT_LIST_HEAD(&gdev->next);
420418

421-
gdev->base = devm_ioremap_resource(&pdev->dev, r);
419+
gdev->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
422420
if (IS_ERR(gdev->base))
423421
return PTR_ERR(gdev->base);
424422

drivers/soc/bcm/bcm2835-power.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,4 +711,3 @@ module_platform_driver(bcm2835_power_driver);
711711

712712
MODULE_AUTHOR("Eric Anholt <[email protected]>");
713713
MODULE_DESCRIPTION("Driver for Broadcom BCM2835 PM power domains and reset");
714-
MODULE_LICENSE("GPL");

drivers/soc/bcm/brcmstb/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if SOC_BRCMSTB
44
config BRCMSTB_PM
55
bool "Support suspend/resume for STB platforms"
66
default y
7-
depends on PM
8-
depends on ARCH_BRCMSTB || BMIPS_GENERIC
9-
select ARM_CPU_SUSPEND if ARM
7+
depends on PM && BMIPS_GENERIC
108

119
endif # SOC_BRCMSTB

drivers/soc/bcm/brcmstb/biuctrl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ static int __init setup_hifcpubiuctrl_regs(struct device_node *np)
288288
if (BRCM_ID(family_id) == 0x7260 && BRCM_REV(family_id) == 0)
289289
cpubiuctrl_regs = b53_cpubiuctrl_no_wb_regs;
290290
out:
291+
if (ret && cpubiuctrl_base) {
292+
iounmap(cpubiuctrl_base);
293+
cpubiuctrl_base = NULL;
294+
}
291295
return ret;
292296
}
293297

drivers/soc/bcm/brcmstb/pm/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_ARM) += s2-arm.o pm-arm.o
32
obj-$(CONFIG_BMIPS_GENERIC) += s2-mips.o s3-mips.o pm-mips.o

drivers/soc/bcm/brcmstb/pm/aon_defs.h

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)