#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/reboot.h>
#include <linux/mmc/host.h>
#include "pwrseq.h"
struct mmc_pwrseq_emmc { … };
#define to_pwrseq_emmc(p) …
static void mmc_pwrseq_emmc_reset(struct mmc_host *host)
{ … }
static int mmc_pwrseq_emmc_reset_nb(struct notifier_block *this,
unsigned long mode, void *cmd)
{ … }
static const struct mmc_pwrseq_ops mmc_pwrseq_emmc_ops = …;
static int mmc_pwrseq_emmc_probe(struct platform_device *pdev)
{ … }
static void mmc_pwrseq_emmc_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id mmc_pwrseq_emmc_of_match[] = …;
MODULE_DEVICE_TABLE(of, mmc_pwrseq_emmc_of_match);
static struct platform_driver mmc_pwrseq_emmc_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;