USB: Fix OHCI warning
This patch fixes a warning introduces by the split endian OHCI support patch on platforms that don't have readl_be/writel_be variants (though mostly harmless as those are called in an if (0) statement, but gcc still warns). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
083522d766
commit
b32e904d54
|
@ -505,17 +505,25 @@ static inline struct usb_hcd *ohci_to_hcd (const struct ohci_hcd *ohci)
|
||||||
static inline unsigned int _ohci_readl (const struct ohci_hcd *ohci,
|
static inline unsigned int _ohci_readl (const struct ohci_hcd *ohci,
|
||||||
__hc32 __iomem * regs)
|
__hc32 __iomem * regs)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_USB_OHCI_BIG_ENDIAN_MMIO
|
||||||
return big_endian_mmio(ohci) ?
|
return big_endian_mmio(ohci) ?
|
||||||
readl_be ((__force u32 *)regs) :
|
readl_be ((__force u32 *)regs) :
|
||||||
readl ((__force u32 *)regs);
|
readl ((__force u32 *)regs);
|
||||||
|
#else
|
||||||
|
return readl ((__force u32 *)regs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void _ohci_writel (const struct ohci_hcd *ohci,
|
static inline void _ohci_writel (const struct ohci_hcd *ohci,
|
||||||
const unsigned int val, __hc32 __iomem *regs)
|
const unsigned int val, __hc32 __iomem *regs)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_USB_OHCI_BIG_ENDIAN_MMIO
|
||||||
big_endian_mmio(ohci) ?
|
big_endian_mmio(ohci) ?
|
||||||
writel_be (val, (__force u32 *)regs) :
|
writel_be (val, (__force u32 *)regs) :
|
||||||
writel (val, (__force u32 *)regs);
|
writel (val, (__force u32 *)regs);
|
||||||
|
#else
|
||||||
|
writel (val, (__force u32 *)regs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LH7A404
|
#ifdef CONFIG_ARCH_LH7A404
|
||||||
|
|
Loading…
Reference in a new issue