#include <linux/module.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/err.h>
#include "xillybus.h"
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;
static const char xillyname[] = …;
static const struct of_device_id xillybus_of_match[] = …;
MODULE_DEVICE_TABLE(of, xillybus_of_match);
static int xilly_drv_probe(struct platform_device *op)
{ … }
static void xilly_drv_remove(struct platform_device *op)
{ … }
static struct platform_driver xillybus_platform_driver = …;
module_platform_driver(…) …;