ALSA: ctxfi: avoid casting function pointers
[linux-2.6-microblaze.git] / sound / pci / ctxfi / ctdaio.c
index 7fc7200..83aaf94 100644 (file)
@@ -684,7 +684,7 @@ static int daio_mgr_commit_write(struct daio_mgr *mgr)
        return 0;
 }
 
-int daio_mgr_create(struct hw *hw, struct daio_mgr **rdaio_mgr)
+int daio_mgr_create(struct hw *hw, void **rdaio_mgr)
 {
        int err, i;
        struct daio_mgr *daio_mgr;
@@ -738,8 +738,9 @@ error1:
        return err;
 }
 
-int daio_mgr_destroy(struct daio_mgr *daio_mgr)
+int daio_mgr_destroy(void *ptr)
 {
+       struct daio_mgr *daio_mgr = ptr;
        unsigned long flags;
 
        /* free daio input mapper list */