mmc->caps = MMC_CAP_4_BIT_DATA; 
static int __devinit wbsd_alloc_mmc(struct device* dev){	struct mmc_host* mmc;	struct wbsd_host* host;		/*	 * Allocate MMC structure.	 */	mmc = mmc_alloc_host(sizeof(struct wbsd_host), dev);	if (!mmc)		return -ENOMEM;		host = mmc_priv(mmc);	host->mmc = mmc;	host->dma = -1;	/*	 * Set host parameters.	 */	mmc->ops = &wbsd_ops;	mmc->f_min = 375000;	mmc->f_max = 24000000;	mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34;		spin_lock_init(&host->lock);		/*	 * Set up timers	 */	init_timer(&host->detect_timer);	host->detect_timer.data = (unsigned long)host;	host->detect_timer.function = wbsd_detect_card;	init_timer(&host->ignore_timer);	host->ignore_timer.data = (unsigned long)host;	host->ignore_timer.function = wbsd_reset_ignore;		/*	 * Maximum number of segments. Worst case is one sector per segment	 * so this will be 64kB/512.	 */	mmc->max_hw_segs = 128;	mmc->max_phys_segs = 128;		/*	 * Maximum number of sectors in one transfer. Also limited by 64kB	 * buffer.	 */	mmc->max_sectors = 128;		/*	 * Maximum segment size. Could be one segment with the maximum number	 * of segments.	 */	mmc->max_seg_size = mmc->max_sectors * 512;		dev_set_drvdata(dev, mmc);		return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/65ae2118e84616680dce37b951ffc366dcce7cf0/wbsd.c/buggy/drivers/mmc/wbsd.c