wbsd.c (ec32e106a112e79385e4c78a7aede39dc34cad6a) | wbsd.c (2ee4f6200597bda9713e28a9c1e65a392615b4b5) |
---|---|
1/* 2 * linux/drivers/mmc/host/wbsd.c - Winbond W83L51xD SD/MMC driver 3 * 4 * Copyright (C) 2004-2007 Pierre Ossman, All Rights Reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or (at --- 942 unchanged lines hidden (view full) --- 951 * Interrupt handling * 952 * * 953\*****************************************************************************/ 954 955/* 956 * Helper function to reset detection ignore 957 */ 958 | 1/* 2 * linux/drivers/mmc/host/wbsd.c - Winbond W83L51xD SD/MMC driver 3 * 4 * Copyright (C) 2004-2007 Pierre Ossman, All Rights Reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or (at --- 942 unchanged lines hidden (view full) --- 951 * Interrupt handling * 952 * * 953\*****************************************************************************/ 954 955/* 956 * Helper function to reset detection ignore 957 */ 958 |
959static void wbsd_reset_ignore(unsigned long data) | 959static void wbsd_reset_ignore(struct timer_list *t) |
960{ | 960{ |
961 struct wbsd_host *host = (struct wbsd_host *)data; | 961 struct wbsd_host *host = from_timer(host, t, ignore_timer); |
962 963 BUG_ON(host == NULL); 964 965 DBG("Resetting card detection ignore\n"); 966 967 spin_lock_bh(&host->lock); 968 969 host->flags &= ~WBSD_FIGNORE_DETECT; --- 249 unchanged lines hidden (view full) --- 1219 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; 1220 mmc->caps = MMC_CAP_4_BIT_DATA; 1221 1222 spin_lock_init(&host->lock); 1223 1224 /* 1225 * Set up timers 1226 */ | 962 963 BUG_ON(host == NULL); 964 965 DBG("Resetting card detection ignore\n"); 966 967 spin_lock_bh(&host->lock); 968 969 host->flags &= ~WBSD_FIGNORE_DETECT; --- 249 unchanged lines hidden (view full) --- 1219 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; 1220 mmc->caps = MMC_CAP_4_BIT_DATA; 1221 1222 spin_lock_init(&host->lock); 1223 1224 /* 1225 * Set up timers 1226 */ |
1227 setup_timer(&host->ignore_timer, wbsd_reset_ignore, 1228 (unsigned long)host); | 1227 timer_setup(&host->ignore_timer, wbsd_reset_ignore, 0); |
1229 1230 /* 1231 * Maximum number of segments. Worst case is one sector per segment 1232 * so this will be 64kB/512. 1233 */ 1234 mmc->max_segs = 128; 1235 1236 /* --- 780 unchanged lines hidden --- | 1228 1229 /* 1230 * Maximum number of segments. Worst case is one sector per segment 1231 * so this will be 64kB/512. 1232 */ 1233 mmc->max_segs = 128; 1234 1235 /* --- 780 unchanged lines hidden --- |