/* * Generic DWMAC platform driver * * Copyright (C) 2007-2011 STMicroelectronics Ltd * Copyright (C) 2015 Joachim Eastwood <[email protected]> * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include "stmmac.h" #include "stmmac_platform.h" static int dwmac_generic_probe(struct platform_device *pdev) { … } static const struct of_device_id dwmac_generic_match[] = …; MODULE_DEVICE_TABLE(of, dwmac_generic_match); static struct platform_driver dwmac_generic_driver = …; module_platform_driver(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;