[RESEND PATCH 1/4] mmc_spi.c: factor out the check for power capability

2011-04-21 Thread Antonio Ospite
Factor out the 'canpower' condition into a dedicated function in order to avoid repetition and to make changing the condition easier. Signed-off-by: Antonio Ospite --- drivers/mmc/host/mmc_spi.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/mm

[PATCH 1/4] mmc_spi.c: factor out the check for power capability

2011-03-21 Thread Antonio Ospite
Factor out the 'canpower' condition into a dedicated function in order to avoid repetition and to make changing the condition easier. Signed-off-by: Antonio Ospite --- drivers/mmc/host/mmc_spi.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/mm