Re: [PATCH] mmc: core: Fix typo at mmc_card_sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Nov 16 2011, Kyungmin Park wrote:
> From: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
>
> Fix wrong bus_ops->sleep check.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> ---
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index 5278ffb..193e449 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -2196,7 +2196,7 @@ int mmc_card_sleep(struct mmc_host *host)
>  
>  	mmc_bus_get(host);
>  
> -	if (host->bus_ops && !host->bus_dead && host->bus_ops->awake)
> +	if (host->bus_ops && !host->bus_dead && host->bus_ops->sleep)
>  		err = host->bus_ops->sleep(host);
>  
>  	mmc_bus_put(host);
>

Thanks, applied to mmc-next for 3.2.

(My understanding is that this isn't going to have any real-world
consequences, since the only bus that defines awake or sleep is
core/mmc.c, and it defines both of them.)

- Chris.
-- 
Chris Ball   <cjb@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux