diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:42:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:42:26 +0000 |
commit | 54f7e7bed65eff7c9253df2594014e9f58987882 (patch) | |
tree | 64ed92cc85c5f2279bb44e66c6cd6fb525203ac2 /package/pcmcia-cs/patches/003-cardmgr_c.patch | |
parent | bdb3ada9ccaf35075bd8405845893cd35e07c291 (diff) | |
download | upstream-54f7e7bed65eff7c9253df2594014e9f58987882.tar.gz upstream-54f7e7bed65eff7c9253df2594014e9f58987882.tar.bz2 upstream-54f7e7bed65eff7c9253df2594014e9f58987882.zip |
remove a few packages which only work with linux 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pcmcia-cs/patches/003-cardmgr_c.patch')
-rw-r--r-- | package/pcmcia-cs/patches/003-cardmgr_c.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/package/pcmcia-cs/patches/003-cardmgr_c.patch b/package/pcmcia-cs/patches/003-cardmgr_c.patch deleted file mode 100644 index 716a0b26b9..0000000000 --- a/package/pcmcia-cs/patches/003-cardmgr_c.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- a/cardmgr/cardmgr.c -+++ b/cardmgr/cardmgr.c -@@ -739,10 +739,7 @@ static int try_insmod(char *mod, char *o - int ret; - - strcpy(cmd, "insmod "); -- if (strchr(mod, '/') != NULL) -- sprintf(cmd+7, "%s/%s.o", modpath, mod); -- else -- sprintf(cmd+7, "%s/pcmcia/%s.o", modpath, mod); -+ sprintf(cmd+7, "%s/%s.o", modpath, mod); - if (access(cmd+7, R_OK) != 0) { - syslog(LOG_NOTICE, "module %s not available", cmd+7); - free(cmd); -@@ -808,11 +805,13 @@ static void install_module(char *mod, ch - } - - if (do_modprobe) { -- if (try_modprobe(mod, opts) != 0) -+ if (try_modprobe(mod, opts) != 0) { - try_insmod(mod, opts); -+ } - } else { -- if (try_insmod(mod, opts) != 0) -+ if (try_insmod(mod, opts) != 0) { - try_modprobe(mod, opts); -+ } - } - } - -@@ -1113,8 +1112,9 @@ static void do_remove(int sn) - - /* remove kernel modules in inverse order */ - for (i = 0; i < card->bindings; i++) { -- for (j = dev[i]->modules-1; j >= 0; j--) -+ for (j = dev[i]->modules-1; j >= 0; j--) { - remove_module(dev[i]->module[j]); -+ } - free_device(dev[i]); - } - /* Remove any MTD's bound to this socket */ |