Begin to consolidate of_device.c
This moves all the common parts for the Sparc, Sparc64 and PowerPC of_device.c files into drivers/of/device.c. Apart from the simple move, Sparc gains of_match_node() and a call to of_node_put in of_release_dev(). PowerPC gains better recovery if device_create_file() fails in of_device_register(). Signed-off-by:Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/powerpc/kernel/of_device.c 1 addition, 121 deletionsarch/powerpc/kernel/of_device.c
- arch/sparc/kernel/of_device.c 1 addition, 108 deletionsarch/sparc/kernel/of_device.c
- arch/sparc64/kernel/of_device.c 3 additions, 111 deletionsarch/sparc64/kernel/of_device.c
- drivers/Kconfig 2 additions, 0 deletionsdrivers/Kconfig
- drivers/of/Kconfig 3 additions, 0 deletionsdrivers/of/Kconfig
- drivers/of/Makefile 1 addition, 0 deletionsdrivers/of/Makefile
- drivers/of/device.c 131 additions, 0 deletionsdrivers/of/device.c
Loading
Please register or sign in to comment