]> err.no Git - linux-2.6/commit
[PATCH] powerpc: tidy-up of_register_driver()/driver_register() return values
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 22 Mar 2006 07:20:27 +0000 (23:20 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 23 Mar 2006 03:40:54 +0000 (14:40 +1100)
commit6ea671a12f66b9d4d0f35fce957a71a6849295f2
tree771e6b38ad68eae3d113db716fc9f3a2d217c780
parent57ae595f6bf8bde42de199ff9fe68b873080fde2
[PATCH] powerpc: tidy-up of_register_driver()/driver_register() return values

Remove the assumption that driver_register() returns the number of devices
bound to the driver.  In fact, it returns zero for success or a negative
error value.

Nobody uses the return value of of_register_driver() anyway.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/of_device.c
drivers/macintosh/smu.c