Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355023
b: refs/heads/master
c: 8222b40
h: refs/heads/master
i:
  355021: 6e5c1b8
  355019: 70bc4fe
  355015: 25c9d9d
  355007: 7a33d2e
v: v3
  • Loading branch information
Jon Mason authored and Greg Kroah-Hartman committed Jan 20, 2013
1 parent f73e4f1 commit 8a99b41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2910fe2a7d0dc0d01944110e462045441ba0856f
refs/heads/master: 8222b402e2df3b92948141046bae82fb774f3f64
6 changes: 6 additions & 0 deletions trunk/drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ int ntb_register_client_dev(char *device_name)
struct ntb_transport *nt;
int rc;

if (list_empty(&ntb_transport_list))
return -ENODEV;

list_for_each_entry(nt, &ntb_transport_list, entry) {
struct device *dev;

Expand Down Expand Up @@ -336,6 +339,9 @@ int ntb_register_client(struct ntb_client *drv)
{
drv->driver.bus = &ntb_bus_type;

if (list_empty(&ntb_transport_list))
return -ENODEV;

return driver_register(&drv->driver);
}
EXPORT_SYMBOL_GPL(ntb_register_client);
Expand Down

0 comments on commit 8a99b41

Please sign in to comment.