aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1362.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-28 14:32:59 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 19:35:17 -0400
commit2809508d3b63c9fedf8daf23d08dd61f40a761f4 (patch)
treed5f374dfd8768c70d0376c32969a3d52b3193a3a /drivers/usb/host/isp1362.h
parent051a0689d64348264fb6e32736be283398b3f0c3 (diff)
USB: isp1362: remove unused _WARN_ON() calls
Like _BUG_ON(), _WARN_ON() wasn't ever being used, so just delete it, as obviously things are working properly now (if not, we have bigger problems...) Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/isp1362.h')
-rw-r--r--drivers/usb/host/isp1362.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/host/isp1362.h b/drivers/usb/host/isp1362.h
index 4ef746dcef85..e0f6f922052d 100644
--- a/drivers/usb/host/isp1362.h
+++ b/drivers/usb/host/isp1362.h
@@ -91,8 +91,6 @@ typedef const unsigned int isp1362_reg_t;
91 91
92#define ISP1362_REG_NO(r) ((r) & REG_NO_MASK) 92#define ISP1362_REG_NO(r) ((r) & REG_NO_MASK)
93 93
94#define _WARN_ON(x) WARN_ON(x)
95
96#define ISP1362_REG(name, addr, width, rw) \ 94#define ISP1362_REG(name, addr, width, rw) \
97static isp1362_reg_t ISP1362_REG_##name = ((addr) | (width) | (rw)) 95static isp1362_reg_t ISP1362_REG_##name = ((addr) | (width) | (rw))
98 96
@@ -101,7 +99,6 @@ static isp1362_reg_t ISP1362_REG_##name = ((addr) | (width) | (rw))
101#else 99#else
102typedef const unsigned char isp1362_reg_t; 100typedef const unsigned char isp1362_reg_t;
103#define ISP1362_REG_NO(r) (r) 101#define ISP1362_REG_NO(r) (r)
104#define _WARN_ON(x) do {} while (0)
105 102
106#define ISP1362_REG(name, addr, width, rw) \ 103#define ISP1362_REG(name, addr, width, rw) \
107static isp1362_reg_t ISP1362_REG_##name = addr 104static isp1362_reg_t ISP1362_REG_##name = addr
@@ -926,14 +923,11 @@ static void isp1362_read_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16
926 __func__, len, offset, buf); 923 __func__, len, offset, buf);
927 924
928 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT); 925 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
929 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
930 926
931 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA); 927 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA);
932 928
933 isp1362_read_fifo(isp1362_hcd, buf, len); 929 isp1362_read_fifo(isp1362_hcd, buf, len);
934 _WARN_ON(!(isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
935 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT); 930 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
936 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
937} 931}
938 932
939static void isp1362_write_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16 offset, int len) 933static void isp1362_write_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16 offset, int len)
@@ -944,14 +938,11 @@ static void isp1362_write_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16
944 __func__, len, offset, buf); 938 __func__, len, offset, buf);
945 939
946 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT); 940 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
947 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
948 941
949 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA | ISP1362_REG_WRITE_OFFSET); 942 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA | ISP1362_REG_WRITE_OFFSET);
950 isp1362_write_fifo(isp1362_hcd, buf, len); 943 isp1362_write_fifo(isp1362_hcd, buf, len);
951 944
952 _WARN_ON(!(isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
953 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT); 945 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
954 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
955} 946}
956 947
957static void __attribute__((unused)) dump_data(char *buf, int len) 948static void __attribute__((unused)) dump_data(char *buf, int len)