Re: [PATCH 2.6.21-rc1] ibmebus: Use of_device_uevent()

2007-02-17 Thread Joachim Fenkes
Sylvain Munaut <[EMAIL PROTECTED]> wrote on 17.02.2007 04:36:01: > Doesn't that oops when called with the fake parent device ? I should stop posting patches after 12 hours of work ,) > Or, an even better approach is to add this > > + if (!ebus_dev->ofdev.node) > + return -ENODEV; > > in

Re: [PATCH 2.6.21-rc1] ibmebus: Use of_device_uevent()

2007-02-17 Thread Sylvain Munaut
Hoang-Nam Nguyen wrote: > This patch replaces ibmebus_uevent() by Sylvain's generic function. > > struct bus_type ibmebus_bus_type = { > - .name = "ibmebus", > - .uevent = ibmebus_uevent, > - .match = ibmebus_bus_match, > + .name = "ibmebus", > + .uevent = of_device_uevent, >

[PATCH 2.6.21-rc1] ibmebus: Use of_device_uevent()

2007-02-16 Thread Hoang-Nam Nguyen
This patch replaces ibmebus_uevent() by Sylvain's generic function. Signed-off-by: Joachim Fenkes <[EMAIL PROTECTED]> --- ibmebus.c | 37 +++-- 1 file changed, 3 insertions(+), 34 deletions(-) diff -urp a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/i