Skip to content

Commit

Permalink
Staging: hv: mousevsc: Inline the code for mousevsc_on_device_add()
Browse files Browse the repository at this point in the history
Inline the code for mousevsc_on_device_add() as this only used from
the function mousevsc_probe().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent a1914f5 commit 5cf06b0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
input_device->hid_device = hid_dev;
}

static int mousevsc_on_device_add(struct hv_device *device)
static int mousevsc_probe(struct hv_device *device,
const struct hv_vmbus_device_id *dev_id)
{
int ret = 0;
struct mousevsc_dev *input_dev;
Expand Down Expand Up @@ -542,13 +543,6 @@ static int mousevsc_on_device_add(struct hv_device *device)
return ret;
}

static int mousevsc_probe(struct hv_device *dev,
const struct hv_vmbus_device_id *dev_id)
{

return mousevsc_on_device_add(dev);

}

static int mousevsc_remove(struct hv_device *dev)
{
Expand Down

0 comments on commit 5cf06b0

Please sign in to comment.