]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/ematch.c
wireless: fix regression caused by regulatory config option
[linux-2.6-omap-h63xx.git] / net / sched / ematch.c
index b29439ddcf717053923a38b610a8ee89cac17744..e82519e548d70c747f602bc179ca487f120ef5af 100644 (file)
@@ -224,7 +224,7 @@ static int tcf_em_validate(struct tcf_proto *tp,
 
                if (em->ops == NULL) {
                        err = -ENOENT;
-#ifdef CONFIG_KMOD
+#ifdef CONFIG_MODULES
                        __rtnl_unlock();
                        request_module("ematch-kind-%u", em_hdr->kind);
                        rtnl_lock();
@@ -410,7 +410,7 @@ void tcf_em_tree_destroy(struct tcf_proto *tp, struct tcf_ematch_tree *tree)
                        if (em->ops->destroy)
                                em->ops->destroy(tp, em);
                        else if (!tcf_em_is_simple(em))
-                               kfree(em->data);
+                               kfree((void *) em->data);
                        module_put(em->ops->owner);
                }
        }