}
}
-static const struct of_device_id rtl838x_eth_of_ids[] = {
+static const struct of_device_id rteth_of_ids[] = {
{
.compatible = "realtek,rtl8380-eth",
.data = &rteth_838x_cfg,
},
{ /* sentinel */ }
};
-MODULE_DEVICE_TABLE(of, rtl838x_eth_of_ids);
+MODULE_DEVICE_TABLE(of, rteth_of_ids);
static struct platform_driver rtl838x_eth_driver = {
.probe = rtl838x_eth_probe,
.remove = rtl838x_eth_remove,
.driver = {
- .name = "rtl838x-eth",
+ .name = KBUILD_MODNAME,
.pm = NULL,
- .of_match_table = rtl838x_eth_of_ids,
+ .of_match_table = rteth_of_ids,
},
};