summaryrefslogtreecommitdiffstats
path: root/include/linux/clk/clk-conf.h
blob: 8da0f99d661bbe53de11a595ae9557129eac3374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) 2014 Samsung Electronics Co., Ltd.
 * Sylwester Nawrocki <s.nawrocki@samsung.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef __CLK_CONF_H
#define __CLK_CONF_H

#include <linux/types.h>

#if defined(CONFIG_OFTREE) && defined(CONFIG_COMMON_CLK_OF_PROVIDER)

struct device_node;
int of_clk_set_defaults(struct device_node *node, bool clk_supplier);

#else

static inline int of_clk_set_defaults(struct device_node *node,
				      bool clk_supplier)
{
	return 0;
}

#endif
#endif /* __CLK_CONF_H */