#include <linux/debugfs.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
struct master_stats_data { … };
struct rpm_master_stats { … } __packed;
static int master_stats_show(struct seq_file *s, void *unused)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int master_stats_probe(struct platform_device *pdev)
{ … }
static void master_stats_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id rpm_master_table[] = …;
static struct platform_driver master_stats_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;