diff options
author | Joe Perches <joe@perches.com> | 2010-02-05 20:51:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:54:59 -0500 |
commit | f45ba776da4fe6c9a9eddd42b0fd5d1f15c260f3 (patch) | |
tree | d830c5552433b85caf93c72cae31ea67d45c330b /drivers/usb/host | |
parent | 759f3634267a67ac90f3fa7fc06510dfd43b4e45 (diff) |
USB: Convert concatenated __FILE__ to %s, __FILE__
Reduces string space a bit
Neaten a macro redefine of dbg
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-ppc-of.c | 12 | ||||
-rw-r--r-- | drivers/usb/host/ehci-xilinx-of.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ohci-dbg.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/ohci-lh7a404.c | 11 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-of.c | 8 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-soc.c | 8 | ||||
-rw-r--r-- | drivers/usb/host/ohci-sa1111.c | 8 |
7 files changed, 28 insertions, 29 deletions
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c index 870b98e07208..8df33b8a634c 100644 --- a/drivers/usb/host/ehci-ppc-of.c +++ b/drivers/usb/host/ehci-ppc-of.c | |||
@@ -134,21 +134,21 @@ ehci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
134 | hcd->rsrc_len = res.end - res.start + 1; | 134 | hcd->rsrc_len = res.end - res.start + 1; |
135 | 135 | ||
136 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 136 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
137 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 137 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
138 | rv = -EBUSY; | 138 | rv = -EBUSY; |
139 | goto err_rmr; | 139 | goto err_rmr; |
140 | } | 140 | } |
141 | 141 | ||
142 | irq = irq_of_parse_and_map(dn, 0); | 142 | irq = irq_of_parse_and_map(dn, 0); |
143 | if (irq == NO_IRQ) { | 143 | if (irq == NO_IRQ) { |
144 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 144 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
145 | rv = -EBUSY; | 145 | rv = -EBUSY; |
146 | goto err_irq; | 146 | goto err_irq; |
147 | } | 147 | } |
148 | 148 | ||
149 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 149 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
150 | if (!hcd->regs) { | 150 | if (!hcd->regs) { |
151 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 151 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
152 | rv = -ENOMEM; | 152 | rv = -ENOMEM; |
153 | goto err_ioremap; | 153 | goto err_ioremap; |
154 | } | 154 | } |
@@ -161,9 +161,9 @@ ehci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
161 | ehci->ohci_hcctrl_reg = ioremap(res.start + | 161 | ehci->ohci_hcctrl_reg = ioremap(res.start + |
162 | OHCI_HCCTRL_OFFSET, OHCI_HCCTRL_LEN); | 162 | OHCI_HCCTRL_OFFSET, OHCI_HCCTRL_LEN); |
163 | else | 163 | else |
164 | pr_debug(__FILE__ ": no ohci offset in fdt\n"); | 164 | pr_debug("%s: no ohci offset in fdt\n", __FILE__); |
165 | if (!ehci->ohci_hcctrl_reg) { | 165 | if (!ehci->ohci_hcctrl_reg) { |
166 | pr_debug(__FILE__ ": ioremap for ohci hcctrl failed\n"); | 166 | pr_debug("%s: ioremap for ohci hcctrl failed\n", __FILE__); |
167 | } else { | 167 | } else { |
168 | ehci->has_amcc_usb23 = 1; | 168 | ehci->has_amcc_usb23 = 1; |
169 | } | 169 | } |
@@ -241,7 +241,7 @@ static int ehci_hcd_ppc_of_remove(struct of_device *op) | |||
241 | else | 241 | else |
242 | release_mem_region(res.start, 0x4); | 242 | release_mem_region(res.start, 0x4); |
243 | else | 243 | else |
244 | pr_debug(__FILE__ ": no ohci offset in fdt\n"); | 244 | pr_debug("%s: no ohci offset in fdt\n", __FILE__); |
245 | of_node_put(np); | 245 | of_node_put(np); |
246 | } | 246 | } |
247 | 247 | ||
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index 4937de7b9e56..f603bb2c0a8e 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
@@ -177,21 +177,21 @@ ehci_hcd_xilinx_of_probe(struct of_device *op, const struct of_device_id *match) | |||
177 | hcd->rsrc_len = res.end - res.start + 1; | 177 | hcd->rsrc_len = res.end - res.start + 1; |
178 | 178 | ||
179 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 179 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
180 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 180 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
181 | rv = -EBUSY; | 181 | rv = -EBUSY; |
182 | goto err_rmr; | 182 | goto err_rmr; |
183 | } | 183 | } |
184 | 184 | ||
185 | irq = irq_of_parse_and_map(dn, 0); | 185 | irq = irq_of_parse_and_map(dn, 0); |
186 | if (irq == NO_IRQ) { | 186 | if (irq == NO_IRQ) { |
187 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 187 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
188 | rv = -EBUSY; | 188 | rv = -EBUSY; |
189 | goto err_irq; | 189 | goto err_irq; |
190 | } | 190 | } |
191 | 191 | ||
192 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 192 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
193 | if (!hcd->regs) { | 193 | if (!hcd->regs) { |
194 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 194 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
195 | rv = -ENOMEM; | 195 | rv = -ENOMEM; |
196 | goto err_ioremap; | 196 | goto err_ioremap; |
197 | } | 197 | } |
diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c index 811f5dfdc582..8ad2441b0284 100644 --- a/drivers/usb/host/ohci-dbg.c +++ b/drivers/usb/host/ohci-dbg.c | |||
@@ -53,13 +53,13 @@ urb_print(struct urb * urb, char * str, int small, int status) | |||
53 | int i, len; | 53 | int i, len; |
54 | 54 | ||
55 | if (usb_pipecontrol (pipe)) { | 55 | if (usb_pipecontrol (pipe)) { |
56 | printk (KERN_DEBUG __FILE__ ": setup(8):"); | 56 | printk (KERN_DEBUG "%s: setup(8):", __FILE__); |
57 | for (i = 0; i < 8 ; i++) | 57 | for (i = 0; i < 8 ; i++) |
58 | printk (" %02x", ((__u8 *) urb->setup_packet) [i]); | 58 | printk (" %02x", ((__u8 *) urb->setup_packet) [i]); |
59 | printk ("\n"); | 59 | printk ("\n"); |
60 | } | 60 | } |
61 | if (urb->transfer_buffer_length > 0 && urb->transfer_buffer) { | 61 | if (urb->transfer_buffer_length > 0 && urb->transfer_buffer) { |
62 | printk (KERN_DEBUG __FILE__ ": data(%d/%d):", | 62 | printk (KERN_DEBUG "%s: data(%d/%d):", __FILE__, |
63 | urb->actual_length, | 63 | urb->actual_length, |
64 | urb->transfer_buffer_length); | 64 | urb->transfer_buffer_length); |
65 | len = usb_pipeout (pipe)? | 65 | len = usb_pipeout (pipe)? |
diff --git a/drivers/usb/host/ohci-lh7a404.c b/drivers/usb/host/ohci-lh7a404.c index de42283149c7..18d39f0463ee 100644 --- a/drivers/usb/host/ohci-lh7a404.c +++ b/drivers/usb/host/ohci-lh7a404.c | |||
@@ -28,8 +28,8 @@ extern int usb_disabled(void); | |||
28 | 28 | ||
29 | static void lh7a404_start_hc(struct platform_device *dev) | 29 | static void lh7a404_start_hc(struct platform_device *dev) |
30 | { | 30 | { |
31 | printk(KERN_DEBUG __FILE__ | 31 | printk(KERN_DEBUG "%s: starting LH7A404 OHCI USB Controller\n", |
32 | ": starting LH7A404 OHCI USB Controller\n"); | 32 | __FILE__); |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * Now, carefully enable the USB clock, and take | 35 | * Now, carefully enable the USB clock, and take |
@@ -39,14 +39,13 @@ static void lh7a404_start_hc(struct platform_device *dev) | |||
39 | udelay(1000); | 39 | udelay(1000); |
40 | USBH_CMDSTATUS = OHCI_HCR; | 40 | USBH_CMDSTATUS = OHCI_HCR; |
41 | 41 | ||
42 | printk(KERN_DEBUG __FILE__ | 42 | printk(KERN_DEBUG "%s: Clock to USB host has been enabled \n", __FILE__); |
43 | ": Clock to USB host has been enabled \n"); | ||
44 | } | 43 | } |
45 | 44 | ||
46 | static void lh7a404_stop_hc(struct platform_device *dev) | 45 | static void lh7a404_stop_hc(struct platform_device *dev) |
47 | { | 46 | { |
48 | printk(KERN_DEBUG __FILE__ | 47 | printk(KERN_DEBUG "%s: stopping LH7A404 OHCI USB Controller\n", |
49 | ": stopping LH7A404 OHCI USB Controller\n"); | 48 | __FILE__); |
50 | 49 | ||
51 | CSC_PWRCNT &= ~CSC_PWRCNT_USBH_EN; /* Disable clock */ | 50 | CSC_PWRCNT &= ~CSC_PWRCNT_USBH_EN; /* Disable clock */ |
52 | } | 51 | } |
diff --git a/drivers/usb/host/ohci-ppc-of.c b/drivers/usb/host/ohci-ppc-of.c index 2a7def16128d..103263c230cf 100644 --- a/drivers/usb/host/ohci-ppc-of.c +++ b/drivers/usb/host/ohci-ppc-of.c | |||
@@ -114,21 +114,21 @@ ohci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
114 | hcd->rsrc_len = res.end - res.start + 1; | 114 | hcd->rsrc_len = res.end - res.start + 1; |
115 | 115 | ||
116 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 116 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
117 | printk(KERN_ERR __FILE__ ": request_mem_region failed\n"); | 117 | printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__); |
118 | rv = -EBUSY; | 118 | rv = -EBUSY; |
119 | goto err_rmr; | 119 | goto err_rmr; |
120 | } | 120 | } |
121 | 121 | ||
122 | irq = irq_of_parse_and_map(dn, 0); | 122 | irq = irq_of_parse_and_map(dn, 0); |
123 | if (irq == NO_IRQ) { | 123 | if (irq == NO_IRQ) { |
124 | printk(KERN_ERR __FILE__ ": irq_of_parse_and_map failed\n"); | 124 | printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__); |
125 | rv = -EBUSY; | 125 | rv = -EBUSY; |
126 | goto err_irq; | 126 | goto err_irq; |
127 | } | 127 | } |
128 | 128 | ||
129 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 129 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
130 | if (!hcd->regs) { | 130 | if (!hcd->regs) { |
131 | printk(KERN_ERR __FILE__ ": ioremap failed\n"); | 131 | printk(KERN_ERR "%s: ioremap failed\n", __FILE__); |
132 | rv = -ENOMEM; | 132 | rv = -ENOMEM; |
133 | goto err_ioremap; | 133 | goto err_ioremap; |
134 | } | 134 | } |
@@ -169,7 +169,7 @@ ohci_hcd_ppc_of_probe(struct of_device *op, const struct of_device_id *match) | |||
169 | } else | 169 | } else |
170 | release_mem_region(res.start, 0x4); | 170 | release_mem_region(res.start, 0x4); |
171 | } else | 171 | } else |
172 | pr_debug(__FILE__ ": cannot get ehci offset from fdt\n"); | 172 | pr_debug("%s: cannot get ehci offset from fdt\n", __FILE__); |
173 | } | 173 | } |
174 | 174 | ||
175 | iounmap(hcd->regs); | 175 | iounmap(hcd->regs); |
diff --git a/drivers/usb/host/ohci-ppc-soc.c b/drivers/usb/host/ohci-ppc-soc.c index cd3398b675b2..89e670e38c10 100644 --- a/drivers/usb/host/ohci-ppc-soc.c +++ b/drivers/usb/host/ohci-ppc-soc.c | |||
@@ -41,14 +41,14 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver, | |||
41 | 41 | ||
42 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 42 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
43 | if (!res) { | 43 | if (!res) { |
44 | pr_debug(__FILE__ ": no irq\n"); | 44 | pr_debug("%s: no irq\n", __FILE__); |
45 | return -ENODEV; | 45 | return -ENODEV; |
46 | } | 46 | } |
47 | irq = res->start; | 47 | irq = res->start; |
48 | 48 | ||
49 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 49 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
50 | if (!res) { | 50 | if (!res) { |
51 | pr_debug(__FILE__ ": no reg addr\n"); | 51 | pr_debug("%s: no reg addr\n", __FILE__); |
52 | return -ENODEV; | 52 | return -ENODEV; |
53 | } | 53 | } |
54 | 54 | ||
@@ -59,14 +59,14 @@ static int usb_hcd_ppc_soc_probe(const struct hc_driver *driver, | |||
59 | hcd->rsrc_len = res->end - res->start + 1; | 59 | hcd->rsrc_len = res->end - res->start + 1; |
60 | 60 | ||
61 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 61 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
62 | pr_debug(__FILE__ ": request_mem_region failed\n"); | 62 | pr_debug("%s: request_mem_region failed\n", __FILE__); |
63 | retval = -EBUSY; | 63 | retval = -EBUSY; |
64 | goto err1; | 64 | goto err1; |
65 | } | 65 | } |
66 | 66 | ||
67 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); | 67 | hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); |
68 | if (!hcd->regs) { | 68 | if (!hcd->regs) { |
69 | pr_debug(__FILE__ ": ioremap failed\n"); | 69 | pr_debug("%s: ioremap failed\n", __FILE__); |
70 | retval = -ENOMEM; | 70 | retval = -ENOMEM; |
71 | goto err2; | 71 | goto err2; |
72 | } | 72 | } |
diff --git a/drivers/usb/host/ohci-sa1111.c b/drivers/usb/host/ohci-sa1111.c index e4bbe8e188e4..d8eb3bdafabb 100644 --- a/drivers/usb/host/ohci-sa1111.c +++ b/drivers/usb/host/ohci-sa1111.c | |||
@@ -31,8 +31,8 @@ static void sa1111_start_hc(struct sa1111_dev *dev) | |||
31 | { | 31 | { |
32 | unsigned int usb_rst = 0; | 32 | unsigned int usb_rst = 0; |
33 | 33 | ||
34 | printk(KERN_DEBUG __FILE__ | 34 | printk(KERN_DEBUG "%s: starting SA-1111 OHCI USB Controller\n", |
35 | ": starting SA-1111 OHCI USB Controller\n"); | 35 | __FILE__); |
36 | 36 | ||
37 | #ifdef CONFIG_SA1100_BADGE4 | 37 | #ifdef CONFIG_SA1100_BADGE4 |
38 | if (machine_is_badge4()) { | 38 | if (machine_is_badge4()) { |
@@ -65,8 +65,8 @@ static void sa1111_start_hc(struct sa1111_dev *dev) | |||
65 | static void sa1111_stop_hc(struct sa1111_dev *dev) | 65 | static void sa1111_stop_hc(struct sa1111_dev *dev) |
66 | { | 66 | { |
67 | unsigned int usb_rst; | 67 | unsigned int usb_rst; |
68 | printk(KERN_DEBUG __FILE__ | 68 | printk(KERN_DEBUG "%s: stopping SA-1111 OHCI USB Controller\n", |
69 | ": stopping SA-1111 OHCI USB Controller\n"); | 69 | __FILE__); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Put the USB host controller into reset. | 72 | * Put the USB host controller into reset. |