/*---------------------------------------------------------------- * cs_error * * Utility function to print card services error messages. * * Arguments: * handle client handle identifying this CS client * func CS function number that generated the error * ret CS function return code * * Returns: * nothing * Side effects: * * Call context: * process thread * interrupt ----------------------------------------------------------------*/ static void cs_error(client_handle_t handle, int func, int ret) { #if (defined(CS_RELEASE_CODE) && (CS_RELEASE_CODE < 0x2911)) CardServices(ReportError, dev_info, (void *)func, (void *)ret); #else error_info_t err = { func, ret }; pcmcia_report_error(handle, &err); #endif }
static void cs_error(client_handle_t handle, int func, int ret) { error_info_t err = { func, ret }; pcmcia_report_error(handle, &err); }
void cs_error(struct pcmcia_device *p_dev, int func, int ret) { error_info_t err = { func, ret }; pcmcia_report_error(p_dev, &err); }