From 34eec2969a691ed157af507865385c498a2726f0 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 31 May 2004 22:30:58 +0000 Subject: [PATCH] added cs_error() compatibility function --- include/pcmcia/ds.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 8de9f000..1be7299e 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h @@ -21,13 +21,18 @@ struct pcmcia_driver { static inline int pcmcia_register_driver(struct pcmcia_driver *driver) { return register_pccard_driver(driver->drv.name, driver->attach, driver->detach); -} +}; static void inline pcmcia_unregister_driver(struct pcmcia_driver *driver) { unregister_pccard_driver(driver->drv.name); -} +}; +static void inline cs_error(client_handle_t handle, int func, int ret) +{ + error_info_t err = { func, ret }; + CardServices(ReportError, handle, &err); +}; #endif -- 2.26.2