From patchwork Tue Sep 7 12:35:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 178132 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: Tue, 07 Sep 2010 13:45:13 +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 1OsxY1-0004jT-9O for chris@printf.net; Tue, 07 Sep 2010 13:45:13 +0100 Received: by mail.laptop.org (Postfix) id C3A5F243A8; Tue, 7 Sep 2010 08:44:53 -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 B2E59243A7 for ; Tue, 7 Sep 2010 08:44:53 -0400 (EDT) X-ASG-Debug-ID: 1283863510-0b74f5000001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id RBVOLCKwBHS9NoZA for ; Tue, 07 Sep 2010 08:45:11 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756198Ab0IGMpK (ORCPT ); Tue, 7 Sep 2010 08:45:10 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:58126 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755736Ab0IGMpJ (ORCPT ); Tue, 7 Sep 2010 08:45:09 -0400 Received: by eyb6 with SMTP id 6so2289661eyb.19 for ; Tue, 07 Sep 2010 05:45:08 -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; bh=rtl8nOgdyduZ4vZW2F5WZYSL6Zf42JF7pJ707n8b6wM=; b=x032Nk6zuZpCfSFaGvLah11bfTzlREXl2WrK6f3VWoZDMGIXGxPh1v48UM6tHak1Il ZBQAm36MMRg7HDAifcvPh0F0Xx5V0mDptOJ0+OELPeCSUlyxbueWQmkTU90ejZ0nBy3c VLw/r9VcGzt3emCvaX+t5hZtuJOnoDd+m/fAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=h6+yl1zdfRsVBsOmlO4v/XhIRT/Lelk8DA1XWpTYZrmMnfhzcVMaWz+hySrxAxtV8+ cUHD9kryL4bTDNycKFGMWy986h5Fufwm58gFnvcQ5cgFsQiBv1RxL+4OPDnnNAXRXB6F t+/qm0QuqZslJj3aZB2tcJ/zrgHE+ZIpxz4/s= Received: by 10.213.59.145 with SMTP id l17mr11089ebh.68.1283862932410; Tue, 07 Sep 2010 05:35:32 -0700 (PDT) Received: from localhost.localdomain (starua.cc.colocall.com [62.149.23.157]) by mx.google.com with ESMTPS id a48sm9835454eei.1.2010.09.07.05.35.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Sep 2010 05:35:31 -0700 (PDT) From: Andy Shevchenko To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hunter Adrian , Chris Ball , Andrew Morton , Andy Shevchenko X-ASG-Orig-Subj: [PATCHv6 1/3] mmc_test: use API to check card type Subject: [PATCHv6 1/3] mmc_test: use API to check card type Date: Tue, 7 Sep 2010 15:35:24 +0300 Message-Id: <09f59cd98b59bf521a5866ab58c216e0a0347a6c.1283862780.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 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: 1283863510 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.40186 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);