int __init omap_muxtbl_get_gpio_by_name(const char *label)
{
    int gpio;
    struct omap_muxtbl *muxtbl = omap_muxtbl_find_by_name(label);

    if (unlikely(muxtbl == NULL))
        gpio = -EINVAL;
    else
        gpio = muxtbl->gpio.gpio;

    return gpio;
}
static void __init none_modem_cfg_mux(void)
{
	int i;
	struct omap_mux_partition *partition;
	struct omap_mux_partition *core = omap_mux_get("core");
	struct omap_mux_partition *wkup = omap_mux_get("wkup");
	struct omap_muxtbl *tbl;

	omap_mux_write_array(core, mux_none_modem);

	for (i = 0; i < ARRAY_SIZE(modem_gpios); i++) {
		tbl = omap_muxtbl_find_by_name(modem_gpios[i].label);
		if (!tbl)
			continue;
		if (tbl->domain == OMAP4_MUXTBL_DOMAIN_WKUP)
			partition = wkup;
		else
			partition = core;

		omap_mux_write(partition,
			OMAP_MUX_MODE7 | OMAP_PIN_INPUT_PULLDOWN,
			tbl->mux.reg_offset);
	}
}