mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 07:40:55 +07:00
b1e3be0647
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>
21 lines
455 B
C
21 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
|