From patchwork Mon Sep 6 08:12:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot for Andy Shevchenko X-Patchwork-Id: 177962 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: Mon, 06 Sep 2010 09:52:29 +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 1OsXRE-0007hU-Sw for chris@printf.net; Mon, 06 Sep 2010 09:52:29 +0100 Received: by mail.laptop.org (Postfix) id 8105924157; Mon, 6 Sep 2010 04:52:09 -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 6F02124156 for ; Mon, 6 Sep 2010 04:52:09 -0400 (EDT) X-ASG-Debug-ID: 1283763145-0b74d0b10001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id FiyocLBBg12K7HBq for ; Mon, 06 Sep 2010 04:52:25 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752862Ab0IFIwW (ORCPT ); Mon, 6 Sep 2010 04:52:22 -0400 Received: from smtp.nokia.com ([147.243.1.47]:49873 "EHLO mgw-sa01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752737Ab0IFIwW (ORCPT ); Mon, 6 Sep 2010 04:52:22 -0400 X-Greylist: delayed 2414 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Sep 2010 04:52:21 EDT Received: from nokia.com (localhost [127.0.0.1]) by mgw-sa01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o868C0Gt021099; Mon, 6 Sep 2010 11:12:01 +0300 Received: from fs-test.research.nokia.com ([esdhcp05135.research.nokia.com [172.21.51.35]]) by mgw-sa01.nokia.com with ESMTP id o868BqU7020943 ; Mon, 6 Sep 2010 11:11:53 +0300 Received: by fs-test.research.nokia.com (Postfix, from userid 1001) id BD18BD1BA9; Mon, 6 Sep 2010 11:12:22 +0300 (EEST) From: Andy Shevchenko To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hunter Adrian , Chris Ball , Andy Shevchenko X-ASG-Orig-Subj: [PATCHv5 1/3] mmc_test: use API to check card type Subject: [PATCHv5 1/3] mmc_test: use API to check card type Date: Mon, 6 Sep 2010 11:12:17 +0300 Message-Id: <3fa57fe7152b608279ec56dcfe969a42b672a197.1283760476.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 X-Nokia-AV: Clean 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: 1283763145 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.40074 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index b992725..cd8edf4 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -1977,7 +1977,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);