Skip to content

Commit

Permalink
USB: EHCI: Remove SPARC_LEON {read,write}_be definitions from ehci.h
Browse files Browse the repository at this point in the history
{read,write}l_be are now defined for SPARC and do not need to be
defined for SPARC_LEON in ehci.h. This patch fixes the following
warnings:

  CC      drivers/usb/host/ehci-hcd.o
In file included from drivers/usb/host/ehci-hcd.c:119:
drivers/usb/host/ehci.h:631:1: warning: "readl_be" redefined
...
drivers/usb/host/ehci-hcd.c:119:
drivers/usb/host/ehci.h:632:1: warning: "writel_be" redefined
...

Signed-off-by: Jan Andersson <jan@gaisler.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jan Andersson authored and Greg Kroah-Hartman committed May 19, 2011
1 parent fda928a commit d5f6db9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/host/ehci.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,6 @@ ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)
#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_IXP4XX)
#define readl_be(addr) __raw_readl((__force unsigned *)addr)
#define writel_be(val, addr) __raw_writel(val, (__force unsigned *)addr)
#elif defined(CONFIG_SPARC_LEON)
#define readl_be(addr) __raw_readl(addr)
#define writel_be(val, addr) __raw_writel(val, addr)
#endif

static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
Expand Down

0 comments on commit d5f6db9

Please sign in to comment.