]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/s390/cio/chsc.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6
[linux-2.6-omap-h63xx.git] / drivers / s390 / cio / chsc.c
index 65264a38057d5cba26ba13b80787800b030ee84e..29826fdd47b84e658916241c3897386582d04ac9 100644 (file)
 
 static void *sei_page;
 
-static int chsc_error_from_response(int response)
+/**
+ * chsc_error_from_response() - convert a chsc response to an error
+ * @response: chsc response code
+ *
+ * Returns an appropriate Linux error code for @response.
+ */
+int chsc_error_from_response(int response)
 {
        switch (response) {
        case 0x0001:
@@ -45,6 +51,7 @@ static int chsc_error_from_response(int response)
                return -EIO;
        }
 }
+EXPORT_SYMBOL_GPL(chsc_error_from_response);
 
 struct chsc_ssd_area {
        struct chsc_header request;