]> err.no Git - linux-2.6/commit
[PATCH] ppc32: Make platform devices being able to assign functions
authorVitaly Bordug <vbordug@ru.mvista.com>
Fri, 20 Jan 2006 19:22:34 +0000 (22:22 +0300)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 Feb 2006 05:52:46 +0000 (16:52 +1100)
commit75288c78c69020a574d93770c3a941b785f3d93d
tree091bcfa5a507e5f1dd387980047854be448f415c
parent1965746bce49ddf001af52c7985e16343c768021
[PATCH] ppc32: Make platform devices being able to assign functions

Implemented by  modification of the .name field of the platform device,
when PDs with the
same names are to be used within different drivers, as
<device_name> -> <device_name>:<function>
Corresponding drivers should change the .name in struct device_driver to
reflect upper of course.

Added ppc_sys_device_disable/enable function set, making it easier to
disable all the inexistent/not utilized platform device way pdevs. By the
check of the "disabled" bit in the config field of ppc_sys_specs, disabled
platform devices will be either added/removed from the bus, or simply not
registered on it, depending on the time when disable/enable call asserted.

The default behaviour when nothing is disabled/enabled will be "all devices
are enabled", which is the same as before.

Also helper platform_notify_map function added, making assignment of
board-specific platform_info more consistent and generic.

Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/syslib/ppc_sys.c
include/asm-ppc/mpc10x.h
include/asm-ppc/mpc52xx.h
include/asm-ppc/mpc8260.h
include/asm-ppc/mpc83xx.h
include/asm-ppc/mpc85xx.h
include/asm-ppc/mpc8xx.h
include/asm-ppc/ppc_sys.h