diff options
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/ds.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 9ff9de9ec3f0..a98bbf42023a 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -249,7 +249,18 @@ struct pcmcia_device { | |||
249 | #define handle_to_dev(handle) (handle->dev) | 249 | #define handle_to_dev(handle) (handle->dev) |
250 | 250 | ||
251 | /* error reporting */ | 251 | /* error reporting */ |
252 | void cs_error(struct pcmcia_device *handle, int func, int ret); | 252 | |
253 | const char *pcmcia_error_func(int func); | ||
254 | const char *pcmcia_error_ret(int ret); | ||
255 | |||
256 | #define cs_error(p_dev, func, ret) \ | ||
257 | { \ | ||
258 | dev_printk(KERN_NOTICE, &p_dev->dev, \ | ||
259 | "%s : %s\n", \ | ||
260 | pcmcia_error_func(func), \ | ||
261 | pcmcia_error_ret(ret)); \ | ||
262 | } | ||
263 | |||
253 | 264 | ||
254 | #endif /* __KERNEL__ */ | 265 | #endif /* __KERNEL__ */ |
255 | #endif /* _LINUX_DS_H */ | 266 | #endif /* _LINUX_DS_H */ |