From patchwork Mon Sep 27 15:01:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 212792 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8RF131m002170 for ; Mon, 27 Sep 2010 15:01:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759527Ab0I0PBh (ORCPT ); Mon, 27 Sep 2010 11:01:37 -0400 Received: from void.printf.net ([89.145.121.20]:56315 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756234Ab0I0PBh (ORCPT ); Mon, 27 Sep 2010 11:01:37 -0400 Received: from chris by void.printf.net with local (Exim 4.69) (envelope-from ) id 1P0FCu-00032H-IW; Mon, 27 Sep 2010 16:01:32 +0100 Date: Mon, 27 Sep 2010 16:01:32 +0100 From: Chris Ball To: Matt Fleming Cc: Jaehoon Chung , linux-mmc@vger.kernel.org, Kyungmin Park , Marek Szyprowski , Andrew Morton , Ben Hutchings , Yunpeng Gao , zhangfei gao Subject: Re: [PATCH V2 1/2] mmc: Add helper function to check if a card is removable Message-ID: <20100927150132.GA11578@void.printf.net> References: <1285576940-27587-1-git-send-email-matt@console-pimps.org> <1285576940-27587-2-git-send-email-matt@console-pimps.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1285576940-27587-2-git-send-email-matt@console-pimps.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 27 Sep 2010 15:01:38 +0000 (UTC) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 23a4864..2e0fe62 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -272,7 +272,7 @@ extern int mmc_assume_removable; static inline int mmc_card_is_removable(struct mmc_host *host) { - return (!(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable); + return !(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable; } #endif