]> Pileus Git - ~andy/linux/commit
gianfar_ptp: use iomem, not ioports resource tree in probe
authorWei Yang <Wei.Yang@windriver.com>
Wed, 24 Oct 2012 05:21:36 +0000 (05:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Oct 2012 03:18:59 +0000 (23:18 -0400)
commit2b9c128e9580e79db48bd3aacb2b4873544e01e8
treecd5685d5210b615c482746afd914e05cf695d692
parentfb78cdbbf4d534ffcf64c386c151187f5f475202
gianfar_ptp: use iomem, not ioports resource tree in probe

When using a 36 bit dtb file, the driver complains "resource busy".

Investigating the source of the message leads one to the
gianfar_ptp_probe function.

Since the type of the device resource requested in this function
is IORESOURCE_MEM, it should use "iomem_resource" instead of
"ioports_resource".

Signed-off-by: Wei Yang <Wei.Yang@windriver.com>
Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
Cc: Timur Tabi <timur@freescale.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar_ptp.c