mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![Linus Walleij](/assets/img/avatar_default.png)
Based on a patch from Arnd Bergmann this fixes up the build problem of assigning a non-existing global when the ux500 PRCMU timer is not linked in by passing its base address to the init function. We also add a missing <linux/errno.h> inclusion and staticize the dummy function. Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
20 lines
455 B
C
20 lines
455 B
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2011
|
|
*
|
|
* License Terms: GNU General Public License v2
|
|
* Author: Mattias Wallin <mattias.wallin@stericsson.com>
|
|
*
|
|
*/
|
|
#ifndef __CLKSRC_DBX500_PRCMU_H
|
|
#define __CLKSRC_DBX500_PRCMU_H
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/io.h>
|
|
|
|
#ifdef CONFIG_CLKSRC_DBX500_PRCMU
|
|
void __init clksrc_dbx500_prcmu_init(void __iomem *base);
|
|
#else
|
|
static inline void __init clksrc_dbx500_prcmu_init(void __iomem *base) {}
|
|
#endif
|
|
|
|
#endif
|