struct devtable {
        const char *device_id; /* name of table, __mod_<name>__*_device_table. */
        unsigned long id_size;
-       void *function;
+       int (*do_entry)(const char *filename, void *symval, char *alias);
 };
 
 /* Define a variable f that holds the value of field f of struct devid
 static void do_table(void *symval, unsigned long size,
                     unsigned long id_size,
                     const char *device_id,
-                    void *function,
+                    int (*do_entry)(const char *filename, void *symval, char *alias),
                     struct module *mod)
 {
        unsigned int i;
        char alias[500];
-       int (*do_entry)(const char *, void *entry, char *alias) = function;
 
        device_id_check(mod->name, device_id, size, id_size, symval);
        /* Leave last one: it's the terminator. */
 
                        if (sym_is(name, namelen, p->device_id)) {
                                do_table(symval, sym->st_size, p->id_size,
-                                        p->device_id, p->function, mod);
+                                        p->device_id, p->do_entry, mod);
                                break;
                        }
                }