Hello. On 10/15/10 07:08, vm.rod25@xxxxxxxxx wrote: > From: Victor Rodriguez<victor.rodriguez@xxxxxxxxxx> > This patch adds MMC/SD support for the Hawkboard-L138 system > Signed-off-by: Victor Rodriguez<victor.rodriguez@xxxxxxxxxx> [...] > diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c > index 6f76220..87dea28 100644 > --- a/arch/arm/mach-davinci/board-omapl138-hawk.c > +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c [...] > @@ -180,6 +208,28 @@ static __init void omapl138_hawk_init(void) > pr_warning("%s: mcasp mux setup failed: %d\n", __func__, ret); > da8xx_register_mcasp(0,&omapl138_hawk_snd_data); I'd put all the following into a sperate function. > + ret = davinci_cfg_reg_list(hawk_mmcsd0_pins); > + if (ret) > + pr_warning("%s: MMC/SD0 mux setup failed: %d\n", > + __func__, ret); > + > + ret = gpio_request(DA850_HAWK_MMCSD_CD_PIN, "MMC CD\n"); > + if (ret) > + pr_warning("%s: can not open GPIO %d\n", > + __func__, DA850_HAWK_MMCSD_CD_PIN); > + gpio_direction_input(DA850_HAWK_MMCSD_CD_PIN); You cannot call that if gpio_request{} failed. > + ret = gpio_request(DA850_HAWK_MMCSD_WP_PIN, "MMC WP\n"); > + if (ret) > + pr_warning("%s: can not open GPIO %d\n", > + __func__, DA850_HAWK_MMCSD_WP_PIN); > + gpio_direction_input(DA850_HAWK_MMCSD_WP_PIN); You cannot call that if gpio_request{} failed. > + ret = da8xx_register_mmcsd0(&da850_mmc_config); > + if (ret) > + pr_warning("%s: MMC/SD0 registration failed: %d\n", > + __func__, ret); > + > ret = da8xx_register_watchdog(); > if (ret) > pr_warning("omapl138_hawk_init: " WBR, Sergei _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel