Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22972
b: refs/heads/master
c: 6ea671a
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Paul Mackerras committed Mar 23, 2006
1 parent 9c2095d commit 71a8394
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57ae595f6bf8bde42de199ff9fe68b873080fde2
refs/heads/master: 6ea671a12f66b9d4d0f35fce957a71a6849295f2
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,12 @@ postcore_initcall(of_bus_driver_init);

int of_register_driver(struct of_platform_driver *drv)
{
int count = 0;

/* initialize common driver fields */
drv->driver.name = drv->name;
drv->driver.bus = &of_platform_bus_type;

/* register with core */
count = driver_register(&drv->driver);
return count ? count : 1;
return driver_register(&drv->driver);
}

void of_unregister_driver(struct of_platform_driver *drv)
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/macintosh/smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,6 @@ static struct of_platform_driver smu_of_platform_driver =

static int __init smu_init_sysfs(void)
{
int rc;

/*
* Due to sysfs bogosity, a sysdev is not a real device, so
* we should in fact create both if we want sysdev semantics
Expand All @@ -639,7 +637,7 @@ static int __init smu_init_sysfs(void)
* I'm a bit too far from figuring out how that works with those
* new chipsets, but that will come back and bite us
*/
rc = of_register_driver(&smu_of_platform_driver);
of_register_driver(&smu_of_platform_driver);
return 0;
}

Expand Down

0 comments on commit 71a8394

Please sign in to comment.