| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * MPC85xx setup and early boot code plus other random bits. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Maintained by Kumar Gala (see MAINTAINERS for contact information) |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright 2005, 2011-2012 Freescale Semiconductor Inc. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/stddef.h> |
|---|
| .. | .. |
|---|
| 26 | 22 | #include <linux/interrupt.h> |
|---|
| 27 | 23 | #include <linux/fsl_devices.h> |
|---|
| 28 | 24 | #include <linux/of_platform.h> |
|---|
| 25 | +#include <linux/pgtable.h> |
|---|
| 29 | 26 | |
|---|
| 30 | | -#include <asm/pgtable.h> |
|---|
| 31 | 27 | #include <asm/page.h> |
|---|
| 32 | 28 | #include <linux/atomic.h> |
|---|
| 33 | 29 | #include <asm/time.h> |
|---|
| .. | .. |
|---|
| 222 | 218 | { |
|---|
| 223 | 219 | return IRQ_HANDLED; |
|---|
| 224 | 220 | } |
|---|
| 225 | | - |
|---|
| 226 | | -static struct irqaction mpc85xxcds_8259_irqaction = { |
|---|
| 227 | | - .handler = mpc85xx_8259_cascade_action, |
|---|
| 228 | | - .flags = IRQF_SHARED | IRQF_NO_THREAD, |
|---|
| 229 | | - .name = "8259 cascade", |
|---|
| 230 | | -}; |
|---|
| 231 | 221 | #endif /* PPC_I8259 */ |
|---|
| 232 | 222 | #endif /* CONFIG_PCI */ |
|---|
| 233 | 223 | |
|---|
| .. | .. |
|---|
| 275 | 265 | * disabled when the last user of the shared IRQ line frees their |
|---|
| 276 | 266 | * interrupt. |
|---|
| 277 | 267 | */ |
|---|
| 278 | | - if ((ret = setup_irq(cascade_irq, &mpc85xxcds_8259_irqaction))) { |
|---|
| 268 | + ret = request_irq(cascade_irq, mpc85xx_8259_cascade_action, |
|---|
| 269 | + IRQF_SHARED | IRQF_NO_THREAD, "8259 cascade", |
|---|
| 270 | + cascade_node); |
|---|
| 271 | + if (ret) { |
|---|
| 279 | 272 | printk(KERN_ERR "Failed to setup cascade interrupt\n"); |
|---|
| 280 | 273 | return ret; |
|---|
| 281 | 274 | } |
|---|