diff options
Diffstat (limited to 'arch/powerpc/sysdev/qe_lib/ucc_slow.c')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc_slow.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index b2870b208ddb..a578bc77b9d5 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -142,7 +142,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
142 | 142 | ||
143 | /* check if the UCC port number is in range. */ | 143 | /* check if the UCC port number is in range. */ |
144 | if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { | 144 | if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { |
145 | printk(KERN_ERR "%s: illegal UCC number\n", __FUNCTION__); | 145 | printk(KERN_ERR "%s: illegal UCC number\n", __func__); |
146 | return -EINVAL; | 146 | return -EINVAL; |
147 | } | 147 | } |
148 | 148 | ||
@@ -161,7 +161,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
161 | uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); | 161 | uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL); |
162 | if (!uccs) { | 162 | if (!uccs) { |
163 | printk(KERN_ERR "%s: Cannot allocate private data\n", | 163 | printk(KERN_ERR "%s: Cannot allocate private data\n", |
164 | __FUNCTION__); | 164 | __func__); |
165 | return -ENOMEM; | 165 | return -ENOMEM; |
166 | } | 166 | } |
167 | 167 | ||
@@ -170,7 +170,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
170 | /* Set the PHY base address */ | 170 | /* Set the PHY base address */ |
171 | uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); | 171 | uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); |
172 | if (uccs->us_regs == NULL) { | 172 | if (uccs->us_regs == NULL) { |
173 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __FUNCTION__); | 173 | printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__); |
174 | return -ENOMEM; | 174 | return -ENOMEM; |
175 | } | 175 | } |
176 | 176 | ||
@@ -189,7 +189,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
189 | uccs->us_pram_offset = | 189 | uccs->us_pram_offset = |
190 | qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM); | 190 | qe_muram_alloc(UCC_SLOW_PRAM_SIZE, ALIGNMENT_OF_UCC_SLOW_PRAM); |
191 | if (IS_ERR_VALUE(uccs->us_pram_offset)) { | 191 | if (IS_ERR_VALUE(uccs->us_pram_offset)) { |
192 | printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __FUNCTION__); | 192 | printk(KERN_ERR "%s: cannot allocate MURAM for PRAM", __func__); |
193 | ucc_slow_free(uccs); | 193 | ucc_slow_free(uccs); |
194 | return -ENOMEM; | 194 | return -ENOMEM; |
195 | } | 195 | } |
@@ -202,7 +202,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
202 | /* Set UCC to slow type */ | 202 | /* Set UCC to slow type */ |
203 | ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); | 203 | ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); |
204 | if (ret) { | 204 | if (ret) { |
205 | printk(KERN_ERR "%s: cannot set UCC type", __FUNCTION__); | 205 | printk(KERN_ERR "%s: cannot set UCC type", __func__); |
206 | ucc_slow_free(uccs); | 206 | ucc_slow_free(uccs); |
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |
@@ -216,7 +216,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
216 | qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), | 216 | qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), |
217 | QE_ALIGNMENT_OF_BD); | 217 | QE_ALIGNMENT_OF_BD); |
218 | if (IS_ERR_VALUE(uccs->rx_base_offset)) { | 218 | if (IS_ERR_VALUE(uccs->rx_base_offset)) { |
219 | printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __FUNCTION__, | 219 | printk(KERN_ERR "%s: cannot allocate %u RX BDs\n", __func__, |
220 | us_info->rx_bd_ring_len); | 220 | us_info->rx_bd_ring_len); |
221 | uccs->rx_base_offset = 0; | 221 | uccs->rx_base_offset = 0; |
222 | ucc_slow_free(uccs); | 222 | ucc_slow_free(uccs); |
@@ -227,7 +227,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
227 | qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), | 227 | qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), |
228 | QE_ALIGNMENT_OF_BD); | 228 | QE_ALIGNMENT_OF_BD); |
229 | if (IS_ERR_VALUE(uccs->tx_base_offset)) { | 229 | if (IS_ERR_VALUE(uccs->tx_base_offset)) { |
230 | printk(KERN_ERR "%s: cannot allocate TX BDs", __FUNCTION__); | 230 | printk(KERN_ERR "%s: cannot allocate TX BDs", __func__); |
231 | uccs->tx_base_offset = 0; | 231 | uccs->tx_base_offset = 0; |
232 | ucc_slow_free(uccs); | 232 | ucc_slow_free(uccs); |
233 | return -ENOMEM; | 233 | return -ENOMEM; |
@@ -317,7 +317,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
317 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, | 317 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, |
318 | COMM_DIR_RX)) { | 318 | COMM_DIR_RX)) { |
319 | printk(KERN_ERR "%s: illegal value for RX clock\n", | 319 | printk(KERN_ERR "%s: illegal value for RX clock\n", |
320 | __FUNCTION__); | 320 | __func__); |
321 | ucc_slow_free(uccs); | 321 | ucc_slow_free(uccs); |
322 | return -EINVAL; | 322 | return -EINVAL; |
323 | } | 323 | } |
@@ -325,7 +325,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
325 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, | 325 | if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, |
326 | COMM_DIR_TX)) { | 326 | COMM_DIR_TX)) { |
327 | printk(KERN_ERR "%s: illegal value for TX clock\n", | 327 | printk(KERN_ERR "%s: illegal value for TX clock\n", |
328 | __FUNCTION__); | 328 | __func__); |
329 | ucc_slow_free(uccs); | 329 | ucc_slow_free(uccs); |
330 | return -EINVAL; | 330 | return -EINVAL; |
331 | } | 331 | } |