#define pr_fmt(fmt) …
#include <linux/etherdevice.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_net.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <linux/sxgbe_platform.h>
#include "sxgbe_common.h"
#include "sxgbe_reg.h"
#ifdef CONFIG_OF
static int sxgbe_probe_config_dt(struct platform_device *pdev,
struct sxgbe_plat_data *plat)
{ … }
#else
static int sxgbe_probe_config_dt(struct platform_device *pdev,
struct sxgbe_plat_data *plat)
{
return -ENOSYS;
}
#endif
static int sxgbe_platform_probe(struct platform_device *pdev)
{ … }
static void sxgbe_platform_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int sxgbe_platform_suspend(struct device *dev)
{ … }
static int sxgbe_platform_resume(struct device *dev)
{ … }
static int sxgbe_platform_freeze(struct device *dev)
{ … }
static int sxgbe_platform_restore(struct device *dev)
{ … }
static const struct dev_pm_ops sxgbe_platform_pm_ops = …;
#else
static const struct dev_pm_ops sxgbe_platform_pm_ops;
#endif
static const struct of_device_id sxgbe_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, sxgbe_dt_ids);
static struct platform_driver sxgbe_platform_driver = …;
int sxgbe_register_platform(void)
{ … }
void sxgbe_unregister_platform(void)
{ … }