/* This is only used if GPIOLIB support is disabled  */
static unsigned int realview_mmc_status(struct device *dev)
/* This is only used if GPIOLIB support is disabled  */
static unsigned int realview_mmc_status(struct device *dev)
{
	struct amba_device *adev = container_of(dev, struct amba_device, dev);
	u32 mask;
	if (adev->res.start == REALVIEW_MMCI0_BASE)
		mask = 1;
	else
		mask = 2;
	return !(readl(REALVIEW_SYSMCI) & mask);
}