diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-03 19:08:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | 441b62c1edb986827154768d89bbac0ba779984f (patch) | |
tree | 13724c22d1b190a36f0ddbba38554e6c66bea6af /drivers/usb/misc/emi26.c | |
parent | 14722ef4acedc643f0b78b7165ceff2d300dae4d (diff) |
USB: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/emi26.c')
-rw-r--r-- | drivers/usb/misc/emi26.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/usb/misc/emi26.c b/drivers/usb/misc/emi26.c index 4a09b87bdd28..4b9dc81b8453 100644 --- a/drivers/usb/misc/emi26.c +++ b/drivers/usb/misc/emi26.c | |||
@@ -70,8 +70,8 @@ static int emi26_writememory (struct usb_device *dev, int address, unsigned char | |||
70 | static int emi26_set_reset (struct usb_device *dev, unsigned char reset_bit) | 70 | static int emi26_set_reset (struct usb_device *dev, unsigned char reset_bit) |
71 | { | 71 | { |
72 | int response; | 72 | int response; |
73 | info("%s - %d", __FUNCTION__, reset_bit); | 73 | info("%s - %d", __func__, reset_bit); |
74 | /* printk(KERN_DEBUG "%s - %d", __FUNCTION__, reset_bit); */ | 74 | /* printk(KERN_DEBUG "%s - %d", __func__, reset_bit); */ |
75 | response = emi26_writememory (dev, CPUCS_REG, &reset_bit, 1, 0xa0); | 75 | response = emi26_writememory (dev, CPUCS_REG, &reset_bit, 1, 0xa0); |
76 | if (response < 0) { | 76 | if (response < 0) { |
77 | err("emi26: set_reset (%d) failed", reset_bit); | 77 | err("emi26: set_reset (%d) failed", reset_bit); |
@@ -91,7 +91,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
91 | 91 | ||
92 | buf = kmalloc(FW_LOAD_SIZE, GFP_KERNEL); | 92 | buf = kmalloc(FW_LOAD_SIZE, GFP_KERNEL); |
93 | if (!buf) { | 93 | if (!buf) { |
94 | err( "%s - error loading firmware: error = %d", __FUNCTION__, -ENOMEM); | 94 | err( "%s - error loading firmware: error = %d", __func__, -ENOMEM); |
95 | err = -ENOMEM; | 95 | err = -ENOMEM; |
96 | goto wraperr; | 96 | goto wraperr; |
97 | } | 97 | } |
@@ -99,7 +99,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
99 | /* Assert reset (stop the CPU in the EMI) */ | 99 | /* Assert reset (stop the CPU in the EMI) */ |
100 | err = emi26_set_reset(dev,1); | 100 | err = emi26_set_reset(dev,1); |
101 | if (err < 0) { | 101 | if (err < 0) { |
102 | err( "%s - error loading firmware: error = %d", __FUNCTION__, err); | 102 | err( "%s - error loading firmware: error = %d", __func__, err); |
103 | goto wraperr; | 103 | goto wraperr; |
104 | } | 104 | } |
105 | 105 | ||
@@ -107,7 +107,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
107 | for (i=0; g_Loader[i].type == 0; i++) { | 107 | for (i=0; g_Loader[i].type == 0; i++) { |
108 | err = emi26_writememory(dev, g_Loader[i].address, g_Loader[i].data, g_Loader[i].length, ANCHOR_LOAD_INTERNAL); | 108 | err = emi26_writememory(dev, g_Loader[i].address, g_Loader[i].data, g_Loader[i].length, ANCHOR_LOAD_INTERNAL); |
109 | if (err < 0) { | 109 | if (err < 0) { |
110 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 110 | err("%s - error loading firmware: error = %d", __func__, err); |
111 | goto wraperr; | 111 | goto wraperr; |
112 | } | 112 | } |
113 | } | 113 | } |
@@ -115,7 +115,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
115 | /* De-assert reset (let the CPU run) */ | 115 | /* De-assert reset (let the CPU run) */ |
116 | err = emi26_set_reset(dev,0); | 116 | err = emi26_set_reset(dev,0); |
117 | if (err < 0) { | 117 | if (err < 0) { |
118 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 118 | err("%s - error loading firmware: error = %d", __func__, err); |
119 | goto wraperr; | 119 | goto wraperr; |
120 | } | 120 | } |
121 | msleep(250); /* let device settle */ | 121 | msleep(250); /* let device settle */ |
@@ -135,7 +135,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
135 | } | 135 | } |
136 | err = emi26_writememory(dev, addr, buf, i, ANCHOR_LOAD_FPGA); | 136 | err = emi26_writememory(dev, addr, buf, i, ANCHOR_LOAD_FPGA); |
137 | if (err < 0) { | 137 | if (err < 0) { |
138 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 138 | err("%s - error loading firmware: error = %d", __func__, err); |
139 | goto wraperr; | 139 | goto wraperr; |
140 | } | 140 | } |
141 | } while (i > 0); | 141 | } while (i > 0); |
@@ -143,7 +143,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
143 | /* Assert reset (stop the CPU in the EMI) */ | 143 | /* Assert reset (stop the CPU in the EMI) */ |
144 | err = emi26_set_reset(dev,1); | 144 | err = emi26_set_reset(dev,1); |
145 | if (err < 0) { | 145 | if (err < 0) { |
146 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 146 | err("%s - error loading firmware: error = %d", __func__, err); |
147 | goto wraperr; | 147 | goto wraperr; |
148 | } | 148 | } |
149 | 149 | ||
@@ -151,7 +151,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
151 | for (i=0; g_Loader[i].type == 0; i++) { | 151 | for (i=0; g_Loader[i].type == 0; i++) { |
152 | err = emi26_writememory(dev, g_Loader[i].address, g_Loader[i].data, g_Loader[i].length, ANCHOR_LOAD_INTERNAL); | 152 | err = emi26_writememory(dev, g_Loader[i].address, g_Loader[i].data, g_Loader[i].length, ANCHOR_LOAD_INTERNAL); |
153 | if (err < 0) { | 153 | if (err < 0) { |
154 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 154 | err("%s - error loading firmware: error = %d", __func__, err); |
155 | goto wraperr; | 155 | goto wraperr; |
156 | } | 156 | } |
157 | } | 157 | } |
@@ -160,7 +160,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
160 | /* De-assert reset (let the CPU run) */ | 160 | /* De-assert reset (let the CPU run) */ |
161 | err = emi26_set_reset(dev,0); | 161 | err = emi26_set_reset(dev,0); |
162 | if (err < 0) { | 162 | if (err < 0) { |
163 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 163 | err("%s - error loading firmware: error = %d", __func__, err); |
164 | goto wraperr; | 164 | goto wraperr; |
165 | } | 165 | } |
166 | 166 | ||
@@ -169,7 +169,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
169 | if (!INTERNAL_RAM(g_Firmware[i].address)) { | 169 | if (!INTERNAL_RAM(g_Firmware[i].address)) { |
170 | err = emi26_writememory(dev, g_Firmware[i].address, g_Firmware[i].data, g_Firmware[i].length, ANCHOR_LOAD_EXTERNAL); | 170 | err = emi26_writememory(dev, g_Firmware[i].address, g_Firmware[i].data, g_Firmware[i].length, ANCHOR_LOAD_EXTERNAL); |
171 | if (err < 0) { | 171 | if (err < 0) { |
172 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 172 | err("%s - error loading firmware: error = %d", __func__, err); |
173 | goto wraperr; | 173 | goto wraperr; |
174 | } | 174 | } |
175 | } | 175 | } |
@@ -178,7 +178,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
178 | /* Assert reset (stop the CPU in the EMI) */ | 178 | /* Assert reset (stop the CPU in the EMI) */ |
179 | err = emi26_set_reset(dev,1); | 179 | err = emi26_set_reset(dev,1); |
180 | if (err < 0) { | 180 | if (err < 0) { |
181 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 181 | err("%s - error loading firmware: error = %d", __func__, err); |
182 | goto wraperr; | 182 | goto wraperr; |
183 | } | 183 | } |
184 | 184 | ||
@@ -186,7 +186,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
186 | if (INTERNAL_RAM(g_Firmware[i].address)) { | 186 | if (INTERNAL_RAM(g_Firmware[i].address)) { |
187 | err = emi26_writememory(dev, g_Firmware[i].address, g_Firmware[i].data, g_Firmware[i].length, ANCHOR_LOAD_INTERNAL); | 187 | err = emi26_writememory(dev, g_Firmware[i].address, g_Firmware[i].data, g_Firmware[i].length, ANCHOR_LOAD_INTERNAL); |
188 | if (err < 0) { | 188 | if (err < 0) { |
189 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 189 | err("%s - error loading firmware: error = %d", __func__, err); |
190 | goto wraperr; | 190 | goto wraperr; |
191 | } | 191 | } |
192 | } | 192 | } |
@@ -195,7 +195,7 @@ static int emi26_load_firmware (struct usb_device *dev) | |||
195 | /* De-assert reset (let the CPU run) */ | 195 | /* De-assert reset (let the CPU run) */ |
196 | err = emi26_set_reset(dev,0); | 196 | err = emi26_set_reset(dev,0); |
197 | if (err < 0) { | 197 | if (err < 0) { |
198 | err("%s - error loading firmware: error = %d", __FUNCTION__, err); | 198 | err("%s - error loading firmware: error = %d", __func__, err); |
199 | goto wraperr; | 199 | goto wraperr; |
200 | } | 200 | } |
201 | msleep(250); /* let device settle */ | 201 | msleep(250); /* let device settle */ |
@@ -221,7 +221,7 @@ static int emi26_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
221 | { | 221 | { |
222 | struct usb_device *dev = interface_to_usbdev(intf); | 222 | struct usb_device *dev = interface_to_usbdev(intf); |
223 | 223 | ||
224 | info("%s start", __FUNCTION__); | 224 | info("%s start", __func__); |
225 | 225 | ||
226 | emi26_load_firmware(dev); | 226 | emi26_load_firmware(dev); |
227 | 227 | ||