[alsa-devel] [PATCH 13/27] drivers/net/of: don't use deprecated field in of_platform_driver

Timur Tabi timur.tabi at gmail.com
Sat Mar 27 02:23:14 EST 2010


I'm seeing this error with this patch applied, when building for an mpc8641_hpcn

  CC      drivers/net/gianfar.o
drivers/net/gianfar.c: In function 'gfar_of_init':
drivers/net/gianfar.c:606: error: 'struct platform_device' has no
member named 'node'
drivers/net/gianfar.c:644: error: 'struct platform_device' has no
member named 'node'
drivers/net/gianfar.c: In function 'gfar_probe':
drivers/net/gianfar.c:891: error: 'struct platform_device' has no
member named 'node'
make[2]: *** [drivers/net/gianfar.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2


On Thu, Mar 11, 2010 at 1:23 PM, Grant Likely <grant.likely at secretlab.ca> wrote:
> .name, .match_table and .owner are duplicated in both of_platform_driver
> and device_driver, so the of_platform_driver copies will be removed soon.
>
> Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
> ---
>
>  drivers/net/can/mscan/mpc5xxx_can.c           |    8 +++++---
>  drivers/net/can/sja1000/sja1000_of_platform.c |    8 +++++---
>  drivers/net/ehea/ehea_main.c                  |    7 +++++--
>  drivers/net/fs_enet/fs_enet-main.c            |    7 +++++--
>  drivers/net/fs_enet/mii-bitbang.c             |    7 +++++--
>  drivers/net/fs_enet/mii-fec.c                 |    7 +++++--
>  drivers/net/fsl_pq_mdio.c                     |    7 +++++--
>  drivers/net/gianfar.c                         |   10 ++++++----
>  drivers/net/ibm_newemac/core.c                |    8 +++++---
>  drivers/net/ibm_newemac/mal.c                 |    8 +++++---
>  drivers/net/ibm_newemac/rgmii.c               |    8 +++++---
>  drivers/net/ibm_newemac/tah.c                 |    8 +++++---
>  drivers/net/ibm_newemac/zmii.c                |    8 +++++---
>  drivers/net/ll_temac_main.c                   |    2 +-
>  drivers/net/myri_sbus.c                       |    7 +++++--
>  drivers/net/niu.c                             |    7 +++++--
>  drivers/net/phy/mdio-gpio.c                   |    7 +++++--
>  drivers/net/sunbmac.c                         |    7 +++++--
>  drivers/net/sunhme.c                          |    7 +++++--
>  drivers/net/sunlance.c                        |    7 +++++--
>  drivers/net/sunqe.c                           |    7 +++++--
>  drivers/net/ucc_geth.c                        |    7 +++++--
>  drivers/net/xilinx_emaclite.c                 |    7 +++++--
>  23 files changed, 112 insertions(+), 54 deletions(-)

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the devicetree-discuss mailing list