|
@@ -2401,15 +2401,10 @@ static int mtk_probe(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
struct device_node *mac_np;
|
|
struct device_node *mac_np;
|
|
- const struct of_device_id *match;
|
|
|
|
- struct mtk_soc_data *soc;
|
|
|
|
struct mtk_eth *eth;
|
|
struct mtk_eth *eth;
|
|
int err;
|
|
int err;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- match = of_match_device(of_mtk_match, &pdev->dev);
|
|
|
|
- soc = (struct mtk_soc_data *)match->data;
|
|
|
|
-
|
|
|
|
eth = devm_kzalloc(&pdev->dev, sizeof(*eth), GFP_KERNEL);
|
|
eth = devm_kzalloc(&pdev->dev, sizeof(*eth), GFP_KERNEL);
|
|
if (!eth)
|
|
if (!eth)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|