.. | .. |
---|
2717 | 2717 | { |
---|
2718 | 2718 | struct rk_priv_data *bsp_priv = priv; |
---|
2719 | 2719 | struct device *dev = &bsp_priv->pdev->dev; |
---|
| 2720 | + unsigned char ethaddr[ETH_ALEN * MAX_ETH] = {0}; |
---|
| 2721 | + int ret, id = bsp_priv->bus_id; |
---|
2720 | 2722 | int i; |
---|
2721 | 2723 | |
---|
2722 | | -#if 0 |
---|
| 2724 | +#if 1 |
---|
2723 | 2725 | if (is_valid_ether_addr(addr)) |
---|
2724 | 2726 | goto out; |
---|
2725 | 2727 | |
---|
.. | .. |
---|
2751 | 2753 | } |
---|
2752 | 2754 | #endif |
---|
2753 | 2755 | |
---|
2754 | | - #if 1 |
---|
| 2756 | + #if 0 |
---|
2755 | 2757 | if (at24_mac_read(macaddr) > 0) { |
---|
2756 | 2758 | printk("ben %s: at24_mac_read Success!! \n", __func__); |
---|
2757 | 2759 | memcpy(addr, macaddr, 6); |
---|
.. | .. |
---|
2938 | 2940 | .of_match_table = rk_gmac_dwmac_match, |
---|
2939 | 2941 | }, |
---|
2940 | 2942 | }; |
---|
2941 | | -module_platform_driver1(rk_gmac_dwmac_driver); |
---|
| 2943 | +module_platform_driver(rk_gmac_dwmac_driver); |
---|
2942 | 2944 | |
---|
2943 | 2945 | MODULE_AUTHOR("Chen-Zhi (Roger Chen) <roger.chen@rock-chips.com>"); |
---|
2944 | 2946 | MODULE_DESCRIPTION("Rockchip RK3288 DWMAC specific glue layer"); |
---|