Skip to content

Commit c51e96d

Browse files
author
Marc Zyngier
committed
Merge branch irq/irqchip-driver-updates into irq/irqchip-next
Various minor irqchip driver updates: - QC PDC now compiles as a module - HiSilicon MBIGEN fix for compile-time warning when !ACPI * irq/irqchip-driver-updates: irqchip/mbigen: Fix compile warning when CONFIG_ACPI is disabled irqchip/qcom-pdc: Switch to IRQCHIP_PLATFORM_DRIVER and allow as a module
2 parents c64638d + c96d6ab commit c51e96d

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

drivers/irqchip/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ config GOLDFISH_PIC
415415
for Goldfish based virtual platforms.
416416

417417
config QCOM_PDC
418-
bool "QCOM PDC"
418+
tristate "QCOM PDC"
419419
depends on ARCH_QCOM
420420
select IRQ_DOMAIN_HIERARCHY
421421
help

drivers/irqchip/irq-mbigen.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ static int mbigen_of_create_domain(struct platform_device *pdev,
273273
}
274274

275275
#ifdef CONFIG_ACPI
276+
static const struct acpi_device_id mbigen_acpi_match[] = {
277+
{ "HISI0152", 0 },
278+
{}
279+
};
280+
MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
281+
276282
static int mbigen_acpi_create_domain(struct platform_device *pdev,
277283
struct mbigen_device *mgn_chip)
278284
{
@@ -369,12 +375,6 @@ static const struct of_device_id mbigen_of_match[] = {
369375
};
370376
MODULE_DEVICE_TABLE(of, mbigen_of_match);
371377

372-
static const struct acpi_device_id mbigen_acpi_match[] = {
373-
{ "HISI0152", 0 },
374-
{}
375-
};
376-
MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
377-
378378
static struct platform_driver mbigen_platform_driver = {
379379
.driver = {
380380
.name = "Hisilicon MBIGEN-V2",

drivers/irqchip/qcom-pdc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#include <linux/irqdomain.h>
1212
#include <linux/io.h>
1313
#include <linux/kernel.h>
14+
#include <linux/module.h>
1415
#include <linux/of.h>
1516
#include <linux/of_address.h>
1617
#include <linux/of_device.h>
18+
#include <linux/of_irq.h>
1719
#include <linux/soc/qcom/irq.h>
1820
#include <linux/spinlock.h>
1921
#include <linux/slab.h>
@@ -459,4 +461,8 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent)
459461
return ret;
460462
}
461463

462-
IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init);
464+
IRQCHIP_PLATFORM_DRIVER_BEGIN(qcom_pdc)
465+
IRQCHIP_MATCH("qcom,pdc", qcom_pdc_init)
466+
IRQCHIP_PLATFORM_DRIVER_END(qcom_pdc)
467+
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller");
468+
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)