mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
[PATCH] irq-flags: drivers/char: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
69ab3912d1
commit
0f2ed4c6ba
@@ -2051,7 +2051,7 @@ static int __init rs_init(void)
|
||||
|
||||
/* set ISRs, and then disable the rx interrupts */
|
||||
request_irq(IRQ_AMIGA_TBE, ser_tx_int, 0, "serial TX", state);
|
||||
request_irq(IRQ_AMIGA_RBF, ser_rx_int, SA_INTERRUPT, "serial RX", state);
|
||||
request_irq(IRQ_AMIGA_RBF, ser_rx_int, IRQF_DISABLED, "serial RX", state);
|
||||
|
||||
/* turn off Rx and Tx interrupts */
|
||||
custom.intena = IF_RBF | IF_TBE;
|
||||
|
||||
@@ -229,7 +229,7 @@ static int __init applicom_init(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (request_irq(dev->irq, &ac_interrupt, SA_SHIRQ, "Applicom PCI", &dummy)) {
|
||||
if (request_irq(dev->irq, &ac_interrupt, IRQF_SHARED, "Applicom PCI", &dummy)) {
|
||||
printk(KERN_INFO "Could not allocate IRQ %d for PCI Applicom device.\n", dev->irq);
|
||||
iounmap(RamIO);
|
||||
pci_disable_device(dev);
|
||||
@@ -276,7 +276,7 @@ static int __init applicom_init(void)
|
||||
printk(KERN_NOTICE "Applicom ISA card found at mem 0x%lx, irq %d\n", mem + (LEN_RAM_IO*i), irq);
|
||||
|
||||
if (!numisa) {
|
||||
if (request_irq(irq, &ac_interrupt, SA_SHIRQ, "Applicom ISA", &dummy)) {
|
||||
if (request_irq(irq, &ac_interrupt, IRQF_SHARED, "Applicom ISA", &dummy)) {
|
||||
printk(KERN_WARNING "Could not allocate IRQ %d for ISA Applicom device.\n", irq);
|
||||
iounmap(RamIO);
|
||||
apbs[boardno - 1].RamIO = NULL;
|
||||
|
||||
@@ -4612,7 +4612,7 @@ cy_detect_isa(void)
|
||||
|
||||
/* allocate IRQ */
|
||||
if(request_irq(cy_isa_irq, cyy_interrupt,
|
||||
SA_INTERRUPT, "Cyclom-Y", &cy_card[j]))
|
||||
IRQF_DISABLED, "Cyclom-Y", &cy_card[j]))
|
||||
{
|
||||
printk("Cyclom-Y/ISA found at 0x%lx ",
|
||||
(unsigned long) cy_isa_address);
|
||||
@@ -4785,7 +4785,7 @@ cy_detect_pci(void)
|
||||
|
||||
/* allocate IRQ */
|
||||
if(request_irq(cy_pci_irq, cyy_interrupt,
|
||||
SA_SHIRQ, "Cyclom-Y", &cy_card[j]))
|
||||
IRQF_SHARED, "Cyclom-Y", &cy_card[j]))
|
||||
{
|
||||
printk("Cyclom-Y/PCI found at 0x%lx ",
|
||||
(ulong) cy_pci_phys2);
|
||||
@@ -4965,7 +4965,7 @@ cy_detect_pci(void)
|
||||
/* allocate IRQ only if board has an IRQ */
|
||||
if( (cy_pci_irq != 0) && (cy_pci_irq != 255) ) {
|
||||
if(request_irq(cy_pci_irq, cyz_interrupt,
|
||||
SA_SHIRQ, "Cyclades-Z", &cy_card[j]))
|
||||
IRQF_SHARED, "Cyclades-Z", &cy_card[j]))
|
||||
{
|
||||
printk("Cyclom-8Zo/PCI found at 0x%lx ",
|
||||
(ulong) cy_pci_phys2);
|
||||
@@ -5059,7 +5059,7 @@ cy_detect_pci(void)
|
||||
/* allocate IRQ only if board has an IRQ */
|
||||
if( (cy_pci_irq != 0) && (cy_pci_irq != 255) ) {
|
||||
if(request_irq(cy_pci_irq, cyz_interrupt,
|
||||
SA_SHIRQ, "Cyclades-Z", &cy_card[j]))
|
||||
IRQF_SHARED, "Cyclades-Z", &cy_card[j]))
|
||||
{
|
||||
printk("Cyclom-Ze/PCI found at 0x%lx ",
|
||||
(ulong) cy_pci_phys2);
|
||||
|
||||
+1
-1
@@ -883,7 +883,7 @@ static int startup(struct esp_struct * info)
|
||||
* Allocate the IRQ
|
||||
*/
|
||||
|
||||
retval = request_irq(info->irq, rs_interrupt_single, SA_SHIRQ,
|
||||
retval = request_irq(info->irq, rs_interrupt_single, IRQF_SHARED,
|
||||
"esp serial", info);
|
||||
|
||||
if (retval) {
|
||||
|
||||
@@ -1268,7 +1268,7 @@ static int fdc_grab_irq_and_dma(void)
|
||||
/* Get fast interrupt handler.
|
||||
*/
|
||||
if (request_irq(fdc.irq, ftape_interrupt,
|
||||
SA_INTERRUPT, "ft", ftape_id)) {
|
||||
IRQF_DISABLED, "ft", ftape_id)) {
|
||||
TRACE_ABORT(-EIO, ft_t_bug,
|
||||
"Unable to grab IRQ%d for ftape driver",
|
||||
fdc.irq);
|
||||
|
||||
+1
-1
@@ -395,7 +395,7 @@ static int hpet_ioctl_ieon(struct hpet_dev *devp)
|
||||
|
||||
sprintf(devp->hd_name, "hpet%d", (int)(devp - hpetp->hp_dev));
|
||||
irq_flags = devp->hd_flags & HPET_SHARED_IRQ
|
||||
? SA_SHIRQ : SA_INTERRUPT;
|
||||
? IRQF_SHARED : IRQF_DISABLED;
|
||||
if (request_irq(irq, hpet_interrupt, irq_flags,
|
||||
devp->hd_name, (void *)devp)) {
|
||||
printk(KERN_ERR "hpet: IRQ %d is not free\n", irq);
|
||||
|
||||
@@ -346,7 +346,7 @@ static int hvc_open(struct tty_struct *tty, struct file * filp)
|
||||
spin_unlock_irqrestore(&hp->lock, flags);
|
||||
/* check error, fallback to non-irq */
|
||||
if (irq != NO_IRQ)
|
||||
rc = request_irq(irq, hvc_handle_interrupt, SA_INTERRUPT, "hvc_console", hp);
|
||||
rc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED, "hvc_console", hp);
|
||||
|
||||
/*
|
||||
* If the request_irq() fails and we return an error. The tty layer
|
||||
|
||||
+1
-1
@@ -899,7 +899,7 @@ static int hvcs_enable_device(struct hvcs_struct *hvcsd, uint32_t unit_address,
|
||||
* the conn was registered and now.
|
||||
*/
|
||||
if (!(rc = request_irq(irq, &hvcs_handle_interrupt,
|
||||
SA_INTERRUPT, "ibmhvcs", hvcsd))) {
|
||||
IRQF_DISABLED, "ibmhvcs", hvcsd))) {
|
||||
/*
|
||||
* It is possible the vty-server was removed after the irq was
|
||||
* requested but before we have time to enable interrupts.
|
||||
|
||||
+1
-1
@@ -1168,7 +1168,7 @@ static int __init hvsi_init(void)
|
||||
struct hvsi_struct *hp = &hvsi_ports[i];
|
||||
int ret = 1;
|
||||
|
||||
ret = request_irq(hp->virq, hvsi_interrupt, SA_INTERRUPT, "hvsi", hp);
|
||||
ret = request_irq(hp->virq, hvsi_interrupt, IRQF_DISABLED, "hvsi", hp);
|
||||
if (ret)
|
||||
printk(KERN_ERR "HVSI: couldn't reserve irq 0x%x (error %i)\n",
|
||||
hp->virq, ret);
|
||||
|
||||
@@ -491,8 +491,8 @@ static struct tty_operations ip2_ops = {
|
||||
/* initialisation of the devices and driver structures, and registers itself */
|
||||
/* with the relevant kernel modules. */
|
||||
/******************************************************************************/
|
||||
/* SA_INTERRUPT- if set blocks all interrupts else only this line */
|
||||
/* SA_SHIRQ - for shared irq PCI or maybe EISA only */
|
||||
/* IRQF_DISABLED - if set blocks all interrupts else only this line */
|
||||
/* IRQF_SHARED - for shared irq PCI or maybe EISA only */
|
||||
/* SA_RANDOM - can be source for cert. random number generators */
|
||||
#define IP2_SA_FLAGS 0
|
||||
|
||||
@@ -753,7 +753,7 @@ retry:
|
||||
if (have_requested_irq(ip2config.irq[i]))
|
||||
continue;
|
||||
rc = request_irq( ip2config.irq[i], ip2_interrupt,
|
||||
IP2_SA_FLAGS | (ip2config.type[i] == PCI ? SA_SHIRQ : 0),
|
||||
IP2_SA_FLAGS | (ip2config.type[i] == PCI ? IRQF_SHARED : 0),
|
||||
pcName, (void *)&pcName);
|
||||
if (rc) {
|
||||
printk(KERN_ERR "IP2: an request_irq failed: error %d\n",rc);
|
||||
|
||||
@@ -1041,7 +1041,7 @@ static int std_irq_setup(struct smi_info *info)
|
||||
if (info->si_type == SI_BT) {
|
||||
rv = request_irq(info->irq,
|
||||
si_bt_irq_handler,
|
||||
SA_INTERRUPT,
|
||||
IRQF_DISABLED,
|
||||
DEVICE_NAME,
|
||||
info);
|
||||
if (!rv)
|
||||
@@ -1051,7 +1051,7 @@ static int std_irq_setup(struct smi_info *info)
|
||||
} else
|
||||
rv = request_irq(info->irq,
|
||||
si_irq_handler,
|
||||
SA_INTERRUPT,
|
||||
IRQF_DISABLED,
|
||||
DEVICE_NAME,
|
||||
info);
|
||||
if (rv) {
|
||||
|
||||
@@ -1614,14 +1614,14 @@ static int __devinit isicom_register_isr(struct pci_dev *pdev,
|
||||
const unsigned int index)
|
||||
{
|
||||
struct isi_board *board = pci_get_drvdata(pdev);
|
||||
unsigned long irqflags = SA_INTERRUPT;
|
||||
unsigned long irqflags = IRQF_DISABLED;
|
||||
int retval = -EINVAL;
|
||||
|
||||
if (!board->base)
|
||||
goto end;
|
||||
|
||||
if (board->isa == NO)
|
||||
irqflags |= SA_SHIRQ;
|
||||
irqflags |= IRQF_SHARED;
|
||||
|
||||
retval = request_irq(board->irq, isicom_interrupt, irqflags,
|
||||
ISICOM_NAME, board);
|
||||
|
||||
@@ -397,7 +397,7 @@ int __init ite_gpio_init(void)
|
||||
init_waitqueue_head(&ite_gpio_wait[i]);
|
||||
}
|
||||
|
||||
if (request_irq(ite_gpio_irq, ite_gpio_irq_handler, SA_SHIRQ, "gpio", 0) < 0) {
|
||||
if (request_irq(ite_gpio_irq, ite_gpio_irq_handler, IRQF_SHARED, "gpio", 0) < 0) {
|
||||
misc_deregister(&ite_gpio_miscdev);
|
||||
release_region(ite_gpio_base, 0x1c);
|
||||
return 0;
|
||||
|
||||
+3
-3
@@ -592,7 +592,7 @@ static int mbcs_intr_alloc(struct cx_dev *dev)
|
||||
getdma->intrHostDest = sn_irq->irq_xtalkaddr;
|
||||
getdma->intrVector = sn_irq->irq_irq;
|
||||
if (request_irq(sn_irq->irq_irq,
|
||||
(void *)mbcs_completion_intr_handler, SA_SHIRQ,
|
||||
(void *)mbcs_completion_intr_handler, IRQF_SHARED,
|
||||
"MBCS get intr", (void *)soft)) {
|
||||
tiocx_irq_free(soft->get_sn_irq);
|
||||
return -EAGAIN;
|
||||
@@ -608,7 +608,7 @@ static int mbcs_intr_alloc(struct cx_dev *dev)
|
||||
putdma->intrHostDest = sn_irq->irq_xtalkaddr;
|
||||
putdma->intrVector = sn_irq->irq_irq;
|
||||
if (request_irq(sn_irq->irq_irq,
|
||||
(void *)mbcs_completion_intr_handler, SA_SHIRQ,
|
||||
(void *)mbcs_completion_intr_handler, IRQF_SHARED,
|
||||
"MBCS put intr", (void *)soft)) {
|
||||
tiocx_irq_free(soft->put_sn_irq);
|
||||
free_irq(soft->get_sn_irq->irq_irq, soft);
|
||||
@@ -628,7 +628,7 @@ static int mbcs_intr_alloc(struct cx_dev *dev)
|
||||
algo->intrHostDest = sn_irq->irq_xtalkaddr;
|
||||
algo->intrVector = sn_irq->irq_irq;
|
||||
if (request_irq(sn_irq->irq_irq,
|
||||
(void *)mbcs_completion_intr_handler, SA_SHIRQ,
|
||||
(void *)mbcs_completion_intr_handler, IRQF_SHARED,
|
||||
"MBCS algo intr", (void *)soft)) {
|
||||
tiocx_irq_free(soft->algo_sn_irq);
|
||||
free_irq(soft->put_sn_irq->irq_irq, soft);
|
||||
|
||||
@@ -687,7 +687,7 @@ static int __init mmtimer_init(void)
|
||||
mmtimer_femtoperiod = ((unsigned long)1E15 + sn_rtc_cycles_per_second /
|
||||
2) / sn_rtc_cycles_per_second;
|
||||
|
||||
if (request_irq(SGI_MMTIMER_VECTOR, mmtimer_interrupt, SA_PERCPU_IRQ, MMTIMER_NAME, NULL)) {
|
||||
if (request_irq(SGI_MMTIMER_VECTOR, mmtimer_interrupt, IRQF_PERCPU, MMTIMER_NAME, NULL)) {
|
||||
printk(KERN_WARNING "%s: unable to allocate interrupt.",
|
||||
MMTIMER_NAME);
|
||||
return -1;
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK|\
|
||||
IXON|IXOFF))
|
||||
|
||||
#define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT)
|
||||
#define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? IRQF_SHARED : IRQF_DISABLED)
|
||||
|
||||
#define C168_ASIC_ID 1
|
||||
#define C104_ASIC_ID 2
|
||||
|
||||
@@ -223,7 +223,7 @@ static int __init nwbutton_init(void)
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, SA_INTERRUPT,
|
||||
if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, IRQF_DISABLED,
|
||||
"nwbutton", NULL)) {
|
||||
printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n",
|
||||
IRQ_NETWINDER_BUTTON);
|
||||
|
||||
@@ -144,7 +144,7 @@ void __init init_qtronix_990P_kbd(void)
|
||||
cir_port_init(cir);
|
||||
|
||||
retval = request_irq(IT8172_CIR0_IRQ, kbd_int_handler,
|
||||
(unsigned long )(SA_INTERRUPT|SA_SHIRQ),
|
||||
(unsigned long )(IRQF_DISABLED|IRQF_SHARED),
|
||||
(const char *)"Qtronix IR Keyboard", (void *)cir);
|
||||
|
||||
if (retval) {
|
||||
|
||||
@@ -625,7 +625,7 @@ static inline int rc_setup_board(struct riscom_board * bp)
|
||||
if (bp->flags & RC_BOARD_ACTIVE)
|
||||
return 0;
|
||||
|
||||
error = request_irq(bp->irq, rc_interrupt, SA_INTERRUPT,
|
||||
error = request_irq(bp->irq, rc_interrupt, IRQF_DISABLED,
|
||||
"RISCom/8", NULL);
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
+3
-3
@@ -220,7 +220,7 @@ static inline unsigned char rtc_is_updating(void)
|
||||
|
||||
#ifdef RTC_IRQ
|
||||
/*
|
||||
* A very tiny interrupt handler. It runs with SA_INTERRUPT set,
|
||||
* A very tiny interrupt handler. It runs with IRQF_DISABLED set,
|
||||
* but there is possibility of conflicting with the set_rtc_mmss()
|
||||
* call (the rtc irq and the timer irq can easily run at the same
|
||||
* time in two different CPUs). So we need to serialize
|
||||
@@ -958,7 +958,7 @@ found:
|
||||
* XXX Interrupt pin #7 in Espresso is shared between RTC and
|
||||
* PCI Slot 2 INTA# (and some INTx# in Slot 1).
|
||||
*/
|
||||
if (request_irq(rtc_irq, rtc_interrupt, SA_SHIRQ, "rtc", (void *)&rtc_port)) {
|
||||
if (request_irq(rtc_irq, rtc_interrupt, IRQF_SHARED, "rtc", (void *)&rtc_port)) {
|
||||
printk(KERN_ERR "rtc: cannot register IRQ %d\n", rtc_irq);
|
||||
return -EIO;
|
||||
}
|
||||
@@ -976,7 +976,7 @@ no_irq:
|
||||
rtc_int_handler_ptr = rtc_interrupt;
|
||||
}
|
||||
|
||||
if(request_irq(RTC_IRQ, rtc_int_handler_ptr, SA_INTERRUPT, "rtc", NULL)) {
|
||||
if(request_irq(RTC_IRQ, rtc_int_handler_ptr, IRQF_DISABLED, "rtc", NULL)) {
|
||||
/* Yeah right, seeing as irq 8 doesn't even hit the bus. */
|
||||
printk(KERN_ERR "rtc: IRQ %d is not free.\n", RTC_IRQ);
|
||||
release_region(RTC_PORT(0), RTC_IO_EXTENT);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user