]> git.sur5r.net Git - u-boot/commitdiff
dm: x86: Drop the weak cpu_irq_init() function
authorSimon Glass <sjg@chromium.org>
Wed, 20 Jan 2016 04:32:32 +0000 (21:32 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 24 Jan 2016 04:07:18 +0000 (12:07 +0800)
There are no callers now. Platforms which need to set up interrupts their
own way can implement an interrupt driver. Drop this function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/irq.c
arch/x86/include/asm/irq.h

index d6151e085aadc023697653b6924ac1da5469e893..0b36ace0915565ab5795655408bca91c88d7ff2a 100644 (file)
@@ -83,11 +83,6 @@ static inline void fill_irq_info(struct irq_info *slot, int bus, int device,
        slot->irq[pin - 1].bitmap = irq_router.irq_mask;
 }
 
-__weak void cpu_irq_init(void)
-{
-       return;
-}
-
 static int create_pirq_routing_table(struct udevice *dev)
 {
        const void *blob = gd->fdt_blob;
@@ -227,8 +222,6 @@ int irq_router_common_init(struct udevice *dev)
 {
        int ret;
 
-       cpu_irq_init();
-
        ret = create_pirq_routing_table(dev);
        if (ret) {
                debug("Failed to create pirq routing table\n");
index 46e1c3119486a5b9497cbfa49e5f21363ffcd160..5b9e6737634e69ed3044fb037306b331eabf297c 100644 (file)
@@ -55,16 +55,6 @@ struct pirq_routing {
 
 #define PIRQ_BITMAP            0xdef8
 
-/**
- * cpu_irq_init() - Initialize CPU IRQ routing
- *
- * This initializes some platform-specific registers related to IRQ routing,
- * like configuring internal PCI devices to use which PCI interrupt pin,
- * and which PCI interrupt pin is mapped to which PIRQ line. Note on some
- * platforms, such IRQ routing might be hard-coded thus cannot configure.
- */
-void cpu_irq_init(void);
-
 /**
  * irq_router_common_init() - Perform common x86 interrupt init
  *