#include <linux/err.h>
#include <linux/init.h>
#include <linux/mfd/stw481x.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/of_regulator.h>
static const unsigned int stw481x_vmmc_voltages[] = …;
static const struct regulator_ops stw481x_vmmc_ops = …;
static const struct regulator_desc vmmc_regulator = …;
static int stw481x_vmmc_regulator_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id stw481x_vmmc_match[] = …;
static struct platform_driver stw481x_vmmc_regulator_driver = …;
module_platform_driver(…) …;