#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <drm/drm_fbdev_dma.h>
#include <drm/drm_module.h>
#include <drm/drm_of.h>
#include "komeda_dev.h"
#include "komeda_kms.h"
struct komeda_drv { … };
struct komeda_dev *dev_to_mdev(struct device *dev)
{ … }
static void komeda_platform_remove(struct platform_device *pdev)
{ … }
static void komeda_platform_shutdown(struct platform_device *pdev)
{ … }
static int komeda_platform_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id komeda_of_match[] = …;
MODULE_DEVICE_TABLE(of, komeda_of_match);
static int __maybe_unused komeda_rt_pm_suspend(struct device *dev)
{ … }
static int __maybe_unused komeda_rt_pm_resume(struct device *dev)
{ … }
static int __maybe_unused komeda_pm_suspend(struct device *dev)
{ … }
static int __maybe_unused komeda_pm_resume(struct device *dev)
{ … }
static const struct dev_pm_ops komeda_pm_ops = …;
static struct platform_driver komeda_platform_driver = …;
drm_module_platform_driver(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;