Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68622
b: refs/heads/master
c: fa7744d
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Oct 14, 2007
1 parent d990570 commit 8f6442f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 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: e8dd16129fad13e5b8b05b6a0a02d10d06f30301
refs/heads/master: fa7744dbb69c06b69c7449063c440d8a53df9e6c
4 changes: 3 additions & 1 deletion trunk/Documentation/sparc/sbus_drivers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ probe in an SBUS driver under Linux:
MODULE_DEVICE_TABLE(of, mydevice_match);

static struct of_platform_driver mydevice_driver = {
.name = "mydevice",
.match_table = mydevice_match,
.probe = mydevice_probe,
.remove = __devexit_p(mydevice_remove),
.driver = {
.name = "mydevice",
},
};

static int __init mydevice_init(void)
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/sparc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,10 @@ __setup("of_debug=", of_debug);
int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
{
/* initialize common driver fields */
drv->driver.name = drv->name;
if (!drv->driver.name)
drv->driver.name = drv->name;
if (!drv->driver.owner)
drv->driver.owner = drv->owner;
drv->driver.bus = bus;

/* register with core */
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,10 @@ __setup("of_debug=", of_debug);
int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
{
/* initialize common driver fields */
drv->driver.name = drv->name;
if (!drv->driver.name)
drv->driver.name = drv->name;
if (!drv->driver.owner)
drv->driver.owner = drv->owner;
drv->driver.bus = bus;

/* register with core */
Expand Down

0 comments on commit 8f6442f

Please sign in to comment.