From patchwork Wed Sep 1 06:26:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 177682 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Wed, 01 Sep 2010 07:27:19 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1Oqgn1-0006MH-Nm for chris@printf.net; Wed, 01 Sep 2010 07:27:19 +0100 Received: by mail.laptop.org (Postfix) id EB90A24513; Wed, 1 Sep 2010 02:26:59 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id 25B7224510 for ; Wed, 1 Sep 2010 02:26:59 -0400 (EDT) X-ASG-Debug-ID: 1283322431-0b7497280005-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id F7pjEO2bBoNL5LfW for ; Wed, 01 Sep 2010 02:27:14 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467Ab0IAG0v (ORCPT ); Wed, 1 Sep 2010 02:26:51 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:39920 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543Ab0IAG0Y (ORCPT ); Wed, 1 Sep 2010 02:26:24 -0400 Received: by eyb6 with SMTP id 6so348892eyb.19 for ; Tue, 31 Aug 2010 23:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=hjX2SBzk/NJuH8P9794yNOlbSs5u3ybTmUKAHVTOhy4=; b=Ha1QA/vQDSrQBs8IN+pXkfCziUtEfbfan2AUc5JnvxJ8MdbN4PIaw/VV04albM3dkq vz+cJUQLQqs982XFaQALMDbLtqs1VtC/m+tOxLAah5/7iJuzye6sr/FNIKEYcDO1dV7d O5vtocOCjtKfZ9qsE3PAVai6nt8XOP9waA6tg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Ou17LXmfH+sSsvZvKEZ8r6Gbzzas9gMwmBxojxwcAmapTd4SPiZ3ZlYf4W50j0LQYh gmOrON4IAAK97UeSITne4ld1QK3RY/51XqyDcMtH2HZu1JQBHL+OKw7mvjsS5W63BEb4 GaLd3gXmuzrW39cjR3/Li4Cq8cs34O701TZlo= Received: by 10.213.114.2 with SMTP id c2mr9093841ebq.36.1283322382483; Tue, 31 Aug 2010 23:26:22 -0700 (PDT) Received: from localhost.localdomain (starua.cc.colocall.com [62.149.23.157]) by mx.google.com with ESMTPS id v8sm15477371eeh.14.2010.08.31.23.26.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 23:26:21 -0700 (PDT) From: Andy Shevchenko To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Adrian Hunter , Andy Shevchenko X-ASG-Orig-Subj: [PATCH 1/3] mmc_test: use API to check card type Subject: [PATCH 1/3] mmc_test: use API to check card type Date: Wed, 1 Sep 2010 09:26:45 +0300 Message-Id: <756943b35144532a3c8de22c6dcfb179e5a7f69f.1283276161.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1283322434 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.39584 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 7aaa4b2..359fae9 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -1960,7 +1960,7 @@ static int mmc_test_probe(struct mmc_card *card) { int ret; - if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD)) + if (!mmc_card_mmc(card) && !mmc_card_sd(card)) return -ENODEV; ret = device_create_file(&card->dev, &dev_attr_test);