[PATCH] mark struct file_operations const 2
[powerpc.git] / arch / mips / sibyte / sb1250 / bcm1250_tbprof.c
index 992e0d8..212547c 100644 (file)
@@ -88,7 +88,7 @@ static void arm_tb(void)
        sbp.tb_armed = 1;
 }
 
-static irqreturn_t sbprof_tb_intr(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t sbprof_tb_intr(int irq, void *dev_id)
 {
        int i;
        DBG(printk(DEVNAME ": tb_intr\n"));
@@ -138,7 +138,7 @@ static irqreturn_t sbprof_tb_intr(int irq, void *dev_id, struct pt_regs *regs)
        return IRQ_HANDLED;
 }
 
-static irqreturn_t sbprof_pc_intr(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t sbprof_pc_intr(int irq, void *dev_id)
 {
        printk(DEVNAME ": unexpected pc_intr");
        return IRQ_NONE;
@@ -374,7 +374,7 @@ static long sbprof_tb_ioctl(struct file *filp,
        return error;
 }
 
-static struct file_operations sbprof_tb_fops = {
+static const struct file_operations sbprof_tb_fops = {
        .owner          = THIS_MODULE,
        .open           = sbprof_tb_open,
        .release        = sbprof_tb_release,