From patchwork Tue May 24 13:03:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wanlong Gao X-Patchwork-Id: 811752 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 p4OD3i56027541 for ; Tue, 24 May 2011 13:03:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756174Ab1EXNDn (ORCPT ); Tue, 24 May 2011 09:03:43 -0400 Received: from mail-px0-f173.google.com ([209.85.212.173]:64766 "EHLO mail-px0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756112Ab1EXNDm (ORCPT ); Tue, 24 May 2011 09:03:42 -0400 Received: by pxi16 with SMTP id 16so4383745pxi.4 for ; Tue, 24 May 2011 06:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=rofx2CX/GQhoeZidD+bzOJ4uYs9r23fPsoz40e00xJE=; b=ak2H0TcptinVw89AI3uwhOP7YoSQCdizpVsE1VIblBRUb/COpZ7Xh5/aNr3LPDE/yH vMZjttrMmYmW3i9KCSer5WfxClHYugiURksR5dx0HT84OCubHzRU28c1u5w2sxFczV1+ GfOVGugNWT7Z8gxcQD5AtBlfOmN49DoCdv4E8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=kp7qUGHIfowB28swpkpE/M2mO9CdpKedWrxsKUboQcpbO/iwTibkfwtrQPFXlvN823 xwrX7+bwjKV8AjpMy0/zzENlP7teFjDMvjhGzaBRGkXnuuVGgv+nI1zXaacwnOGBTbeZ lmLpnjEpNTLwP9ribyTxXOtuDJH/8gNf3VsIo= Received: by 10.68.65.68 with SMTP id v4mr2897421pbs.158.1306242221653; Tue, 24 May 2011 06:03:41 -0700 (PDT) Received: from localhost.localdomain ([182.32.187.185]) by mx.google.com with ESMTPS id t9sm5000267pbo.3.2011.05.24.06.03.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2011 06:03:40 -0700 (PDT) From: Wanlong Gao To: Chris Ball , Grant Likely Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Wanlong Gao Subject: [PATCH] drivers:mmc:add the NO_IRQ define to of_mmc_spi.c Date: Tue, 24 May 2011 21:03:22 +0800 Message-Id: <1306242202-9252-1-git-send-email-wanlong.gao@gmail.com> X-Mailer: git-send-email 1.7.4.1 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.6 (demeter1.kernel.org [140.211.167.41]); Tue, 24 May 2011 13:03:44 +0000 (UTC) For archs that don't support NO_IRQ (such as mips), provide a dummy value. Fix the build error for mips. Signed-off-by: Wanlong Gao Acked-by: Grant Likely --- drivers/mmc/host/of_mmc_spi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c index e2aecb7..ab66f24 100644 --- a/drivers/mmc/host/of_mmc_spi.c +++ b/drivers/mmc/host/of_mmc_spi.c @@ -25,6 +25,11 @@ #include #include +/* For archs that don't support NO_IRQ (such as mips), provide a dummy value */ +#ifndef NO_IRQ +#define NO_IRQ 0 +#endif + MODULE_LICENSE("GPL"); enum {