Skip to content

Commit

Permalink
sh: eliminate unused irq_reg_{readl,writel} accessors
Browse files Browse the repository at this point in the history
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: 332fd7c ("genirq: Generic chip: Change irq_reg_{readl,writel} arguments")
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Geert 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
cernekee authored and torvalds committed Feb 10, 2015
1 parent 560b8c0 commit 102ca66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions arch/sh/boards/mach-se/7343/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
#define DRV_NAME "SE7343-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt

#define irq_reg_readl ioread16
#define irq_reg_writel iowrite16

#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
Expand Down
3 changes: 0 additions & 3 deletions arch/sh/boards/mach-se/7722/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#define DRV_NAME "SE7722-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt

#define irq_reg_readl ioread16
#define irq_reg_writel iowrite16

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

0 comments on commit 102ca66

Please sign in to comment.