aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctresource.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ctxfi/ctresource.c')
-rw-r--r--sound/pci/ctxfi/ctresource.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
index 414fc23267cd..da21a717a07a 100644
--- a/sound/pci/ctxfi/ctresource.c
+++ b/sound/pci/ctxfi/ctresource.c
@@ -162,12 +162,14 @@ int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
162 case DAIO: 162 case DAIO:
163 break; 163 break;
164 default: 164 default:
165 printk(KERN_ERR "Invalid resource type value %d!\n", type); 165 printk(KERN_ERR
166 "ctxfi: Invalid resource type value %d!\n", type);
166 return -EINVAL; 167 return -EINVAL;
167 } 168 }
168 169
169 if (err) { 170 if (err) {
170 printk(KERN_ERR "Failed to get resource control block!\n"); 171 printk(KERN_ERR
172 "ctxfi: Failed to get resource control block!\n");
171 return err; 173 return err;
172 } 174 }
173 175
@@ -190,8 +192,8 @@ int rsc_uninit(struct rsc *rsc)
190 case DAIO: 192 case DAIO:
191 break; 193 break;
192 default: 194 default:
193 printk(KERN_ERR "Invalid resource type value %d!\n", 195 printk(KERN_ERR "ctxfi: "
194 rsc->type); 196 "Invalid resource type value %d!\n", rsc->type);
195 break; 197 break;
196 } 198 }
197 199
@@ -233,13 +235,15 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
233 case SUM: 235 case SUM:
234 break; 236 break;
235 default: 237 default:
236 printk(KERN_ERR "Invalid resource type value %d!\n", type); 238 printk(KERN_ERR
239 "ctxfi: Invalid resource type value %d!\n", type);
237 err = -EINVAL; 240 err = -EINVAL;
238 goto error; 241 goto error;
239 } 242 }
240 243
241 if (err) { 244 if (err) {
242 printk(KERN_ERR "Failed to get manager control block!\n"); 245 printk(KERN_ERR
246 "ctxfi: Failed to get manager control block!\n");
243 goto error; 247 goto error;
244 } 248 }
245 249
@@ -282,8 +286,8 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
282 case SUM: 286 case SUM:
283 break; 287 break;
284 default: 288 default:
285 printk(KERN_ERR "Invalid resource type value %d!\n", 289 printk(KERN_ERR "ctxfi: "
286 mgr->type); 290 "Invalid resource type value %d!\n", mgr->type);
287 break; 291 break;
288 } 292 }
289 293