[viro at ftp.linux.org.uk: [PATCH] rpadlpar breakage - fallout of struct subsystem removal]

Michael Ellerman michael at ellerman.id.au
Wed May 16 10:49:48 EST 2007


On Tue, 2007-05-15 at 20:47 +0100, Al Viro wrote:
> [oops - typo in Cc in original posting]
> 
> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> ---
>  drivers/pci/hotplug/rpadlpar_sysfs.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/hotplug/rpadlpar_sysfs.c b/drivers/pci/hotplug/rpadlpar_sysfs.c
> index 6c5be3f..df07606 100644
> --- a/drivers/pci/hotplug/rpadlpar_sysfs.c
> +++ b/drivers/pci/hotplug/rpadlpar_sysfs.c
> @@ -129,8 +129,9 @@ struct kobj_type ktype_dlpar_io = {
>  };
>  
>  struct kset dlpar_io_kset = {
> -	.subsys = &pci_hotplug_slots_subsys,
> -	.kobj = {.name = DLPAR_KOBJ_NAME, .ktype=&ktype_dlpar_io,},
> +	.kobj = {.name = DLPAR_KOBJ_NAME,
> +		 .ktype = &ktype_dlpar_io,
> +		 .parent = &pci_hotplug_slots_subsys.kobj},
>  	.ktype = &ktype_dlpar_io,
>  };

That seems to work, I get 'add_slot' and 'remove_slot'
under /sys/bus/pci/slots/control again.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070516/575bf15b/attachment.pgp>


More information about the Linuxppc-dev mailing list