Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756806Ab3HOLL6 (ORCPT ); Thu, 15 Aug 2013 07:11:58 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:19433 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755984Ab3HOLLG (ORCPT ); Thu, 15 Aug 2013 07:11:06 -0400 X-IronPort-AV: E=Sophos;i="4.89,885,1367971200"; d="scan'208";a="42396946" From: Stefano Stabellini To: CC: , , , , , Stefano Stabellini , , Subject: [PATCH v4 05/10] arm64: do not initialize arm64_swiotlb if dma_ops is already set Date: Thu, 15 Aug 2013 12:10:49 +0100 Message-ID: <1376565054-24153-5-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 28 Signed-off-by: Stefano Stabellini CC: catalin.marinas@arm.com CC: will.deacon@arm.com --- arch/arm64/mm/dma-mapping.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 4bd7579..a006e84 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -63,6 +63,8 @@ static struct dma_map_ops arm64_swiotlb_dma_ops = { void __init arm64_swiotlb_init(void) { + if (dma_ops != NULL) + return; dma_ops = &arm64_swiotlb_dma_ops; swiotlb_init(1); } -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/