19 #include <linux/kernel.h>
20 #include <linux/module.h>
22 #include <linux/netdevice.h>
24 #include <linux/pci.h>
33 #define DRV_NAME "sja1000_platform"
78 pdata = pdev->
dev.platform_data;
80 dev_err(&pdev->
dev,
"No platform data provided!\n");
87 if (!res_mem || !res_irq) {
109 priv = netdev_priv(dev);
142 dev_err(&pdev->
dev,
"registering %s failed (err=%d)\n",
147 dev_info(&pdev->
dev,
"%s device registered (reg_base=%p, irq=%d)\n",