/* Allocate and initialise a new MMC card structure.  */
struct mmc_card* mmc_alloc_card(struct mmc_host *host, struct device_type *type)
/* Allocate and initialise a new MMC card structure.  */
struct mmc_card* mmc_alloc_card(struct mmc_host *host, struct device_type *type)
{
	struct mmc_card *card;
	card = kzalloc(sizeof(struct mmc_card), GFP_KERNEL);
	if (!card)
		return ERR_PTR(-ENOMEM);
	card->host = host;
	device_initialize(&card->dev);
	card->dev.parent = mmc_classdev(host);
	card->dev.bus = &mmc_bus_type;
	card->dev.release = mmc_release_card;
	card->dev.type = type;
	return card;
}