#include <linux/slab.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include "clk.h"
#define streq(a, b) …
#define to_socfpga_gate_clk(p) …
#define SYSMGR_SDMMCGRP_CTRL_OFFSET …
static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk,
unsigned long parent_rate)
{ … }
static struct clk_ops gateclk_ops = …;
static void __init __socfpga_gate_init(struct device_node *node,
const struct clk_ops *ops)
{ … }
void __init socfpga_a10_gate_init(struct device_node *node)
{ … }