Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 102ca660 authored by Kevin Cernekee's avatar Kevin Cernekee Committed by Linus Torvalds
Browse files

sh: eliminate unused irq_reg_{readl,writel} accessors



Defining these macros way down in arch/sh/.../irq.c doesn't cause
kernel/irq/generic-chip.c to use them.  As far as I can tell this code has
no effect.

Fixes: 332fd7c4 ("genirq: Generic chip: Change irq_reg_{readl,writel} arguments")
Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> (cpp/asm comparison)
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 560b8c0e
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -14,9 +14,6 @@
#define DRV_NAME "SE7343-FPGA"
#define DRV_NAME "SE7343-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
#define pr_fmt(fmt) DRV_NAME ": " fmt


#define irq_reg_readl	ioread16
#define irq_reg_writel	iowrite16

#include <linux/init.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
+0 −3
Original line number Original line Diff line number Diff line
@@ -11,9 +11,6 @@
#define DRV_NAME "SE7722-FPGA"
#define DRV_NAME "SE7722-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
#define pr_fmt(fmt) DRV_NAME ": " fmt


#define irq_reg_readl	ioread16
#define irq_reg_writel	iowrite16

#include <linux/init.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>