From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753789AbbE1NHK (ORCPT ); Thu, 28 May 2015 09:07:10 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:24637 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbbE1NHF (ORCPT ); Thu, 28 May 2015 09:07:05 -0400 From: Nicolas Ferre To: Boris BREZILLON , Mike Turquette CC: Josh Wu , Ludovic Desroches , , , Alexandre Belloni , Nicolas Ferre , Subject: [PATCH] clk: at91: fix h32mx prototype inclusion in pmc header Date: Thu, 28 May 2015 15:07:21 +0200 Message-ID: <1432818441-17278-1-git-send-email-nicolas.ferre@atmel.com> X-Mailer: git-send-email 2.1.3 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 Trivial fix that prevents to compile this pmc clock driver if h32mx clock is present but smd clock isn't. Signed-off-by: Nicolas Ferre Fixes: bcc5fd49a0fd ("clk: at91: add a driver for the h32mx clock") Cc: # 3.18+ --- drivers/clk/at91/pmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h index 69abb08cf146..eb8e5dc9076d 100644 --- a/drivers/clk/at91/pmc.h +++ b/drivers/clk/at91/pmc.h @@ -121,7 +121,7 @@ extern void __init of_at91sam9x5_clk_smd_setup(struct device_node *np, struct at91_pmc *pmc); #endif -#if defined(CONFIG_HAVE_AT91_SMD) +#if defined(CONFIG_HAVE_AT91_H32MX) extern void __init of_sama5d4_clk_h32mx_setup(struct device_node *np, struct at91_pmc *pmc); #endif -- 2.1.3