diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-08 14:01:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-08 14:01:13 -0400 |
commit | 2a1ccd31420a7b1acd6ca37b2bec2d723aa093e4 (patch) | |
tree | 43946f0c4afc7dce86fc055df48d661f8ed3999c /drivers/irqchip/qcom-irq-combiner.c | |
parent | e0e86b111bca6bbf746c03ec5cf3e6a61fa3f8e9 (diff) | |
parent | 3a1d24ca9573fbc74a3d32c972c333b161e0e9dc (diff) |
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq updates from Thomas Gleixner:
"The irq departement provides the usual mixed bag:
Core:
- Further improvements to the irq timings code which aims to predict
the next interrupt for power state selection to achieve better
latency/power balance
- Add interrupt statistics to the core NMI handlers
- The usual small fixes and cleanups
Drivers:
- Support for Renesas RZ/A1, Annapurna Labs FIC, Meson-G12A SoC and
Amazon Gravition AMR/GIC interrupt controllers.
- Rework of the Renesas INTC controller driver
- ACPI support for Socionext SoCs
- Enhancements to the CSKY interrupt controller
- The usual small fixes and cleanups"
* 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (39 commits)
irq/irqdomain: Fix comment typo
genirq: Update irq stats from NMI handlers
irqchip/gic-pm: Remove PM_CLK dependency
irqchip/al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver
dt-bindings: interrupt-controller: Add Amazon's Annapurna Labs FIC
softirq: Use __this_cpu_write() in takeover_tasklets()
irqchip/mbigen: Stop printing kernel addresses
irqchip/gic: Add dependency for ARM_GIC_MAX_NR
genirq/affinity: Remove unused argument from [__]irq_build_affinity_masks()
genirq/timings: Add selftest for next event computation
genirq/timings: Add selftest for irqs circular buffer
genirq/timings: Add selftest for circular array
genirq/timings: Encapsulate storing function
genirq/timings: Encapsulate timings push
genirq/timings: Optimize the period detection speed
genirq/timings: Fix timings buffer inspection
genirq/timings: Fix next event index function
irqchip/qcom: Use struct_size() in devm_kzalloc()
irqchip/irq-csky-mpintc: Remove unnecessary loop in interrupt handler
dt-bindings: interrupt-controller: Update csky mpintc
...
Diffstat (limited to 'drivers/irqchip/qcom-irq-combiner.c')
-rw-r--r-- | drivers/irqchip/qcom-irq-combiner.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/irqchip/qcom-irq-combiner.c b/drivers/irqchip/qcom-irq-combiner.c index 067337ab3f20..d88e993aa66d 100644 --- a/drivers/irqchip/qcom-irq-combiner.c +++ b/drivers/irqchip/qcom-irq-combiner.c | |||
@@ -229,7 +229,6 @@ static int get_registers(struct platform_device *pdev, struct combiner *comb) | |||
229 | static int __init combiner_probe(struct platform_device *pdev) | 229 | static int __init combiner_probe(struct platform_device *pdev) |
230 | { | 230 | { |
231 | struct combiner *combiner; | 231 | struct combiner *combiner; |
232 | size_t alloc_sz; | ||
233 | int nregs; | 232 | int nregs; |
234 | int err; | 233 | int err; |
235 | 234 | ||
@@ -239,8 +238,8 @@ static int __init combiner_probe(struct platform_device *pdev) | |||
239 | return -EINVAL; | 238 | return -EINVAL; |
240 | } | 239 | } |
241 | 240 | ||
242 | alloc_sz = sizeof(*combiner) + sizeof(struct combiner_reg) * nregs; | 241 | combiner = devm_kzalloc(&pdev->dev, struct_size(combiner, regs, nregs), |
243 | combiner = devm_kzalloc(&pdev->dev, alloc_sz, GFP_KERNEL); | 242 | GFP_KERNEL); |
244 | if (!combiner) | 243 | if (!combiner) |
245 | return -ENOMEM; | 244 | return -ENOMEM; |
246 | 245 | ||