Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268368
b: refs/heads/master
c: 8494689
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent 898f085 commit b6acd0a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 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: 3037a7b61fa63160f2bd76555aa9ae59c6f71faf
refs/heads/master: 84946899bd50035c50d88da9da809aa25de60471
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ static int mousevsc_on_device_remove(struct hv_device *device)
}


static int mousevsc_probe(struct hv_device *dev)
static int mousevsc_probe(struct hv_device *dev,
const struct hv_vmbus_device_id *dev_id)
{
int ret = 0;

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/hv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ static void heartbeat_onchannelcallback(void *context)
* The devices managed by the util driver don't need any additional
* setup.
*/
static int util_probe(struct hv_device *dev)
static int util_probe(struct hv_device *dev,
const struct hv_vmbus_device_id *dev_id)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ struct hv_driver {

struct device_driver driver;

int (*probe)(struct hv_device *);
int (*probe)(struct hv_device *, const struct hv_vmbus_device_id *);
int (*remove)(struct hv_device *);
void (*shutdown)(struct hv_device *);

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ static void netvsc_send_garp(struct work_struct *w)
}


static int netvsc_probe(struct hv_device *dev)
static int netvsc_probe(struct hv_device *dev,
const struct hv_vmbus_device_id *dev_id)
{
struct net_device *net = NULL;
struct net_device_context *net_device_ctx;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,8 @@ MODULE_DEVICE_TABLE(vmbus, id_table);
* storvsc_probe - Add a new device for this driver
*/

static int storvsc_probe(struct hv_device *device)
static int storvsc_probe(struct hv_device *device,
const struct hv_vmbus_device_id *dev_id)
{
int ret;
struct Scsi_Host *host;
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,11 @@ static int vmbus_probe(struct device *child_device)
struct hv_driver *drv =
drv_to_hv_drv(child_device->driver);
struct hv_device *dev = device_to_hv_device(child_device);
const struct hv_vmbus_device_id *dev_id;

dev_id = hv_vmbus_get_id(drv->id_table, dev->dev_type.b);
if (drv->probe) {
ret = drv->probe(dev);
ret = drv->probe(dev, dev_id);
if (ret != 0)
pr_err("probe failed for device %s (%d)\n",
dev_name(child_device), ret);
Expand Down

0 comments on commit b6acd0a

Please sign in to comment.