Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266852
b: refs/heads/master
c: ca63f8c
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Martensson authored and David S. Miller committed Oct 19, 2011
1 parent 0cbe114 commit c0290c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: 687b13e98addc99644002703944ec89e94287cb6
refs/heads/master: ca63f8c7512acbd1171bbabefc7a7765ce117939
16 changes: 4 additions & 12 deletions trunk/drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ int cfhsi_probe(struct platform_device *pdev)
return res;
}

static void cfhsi_shutdown(struct cfhsi *cfhsi, bool remove_platform_dev)
static void cfhsi_shutdown(struct cfhsi *cfhsi)
{
u8 *tx_buf, *rx_buf;

Expand All @@ -1093,14 +1093,6 @@ static void cfhsi_shutdown(struct cfhsi *cfhsi, bool remove_platform_dev)
/* going to shutdown driver */
set_bit(CFHSI_SHUTDOWN, &cfhsi->bits);

if (remove_platform_dev) {
/* Flush workqueue */
flush_workqueue(cfhsi->wq);

/* Notify device. */
platform_device_unregister(cfhsi->pdev);
}

/* Flush workqueue */
flush_workqueue(cfhsi->wq);

Expand All @@ -1111,7 +1103,7 @@ static void cfhsi_shutdown(struct cfhsi *cfhsi, bool remove_platform_dev)
/* Cancel pending RX request (if any) */
cfhsi->dev->cfhsi_rx_cancel(cfhsi->dev);

/* Flush again and destroy workqueue */
/* Destroy workqueue */
destroy_workqueue(cfhsi->wq);

/* Store bufferes: will be freed later. */
Expand Down Expand Up @@ -1150,7 +1142,7 @@ int cfhsi_remove(struct platform_device *pdev)
spin_unlock(&cfhsi_list_lock);

/* Shutdown driver. */
cfhsi_shutdown(cfhsi, false);
cfhsi_shutdown(cfhsi);

return 0;
}
Expand Down Expand Up @@ -1183,7 +1175,7 @@ static void __exit cfhsi_exit_module(void)
spin_unlock(&cfhsi_list_lock);

/* Shutdown driver. */
cfhsi_shutdown(cfhsi, true);
cfhsi_shutdown(cfhsi);

spin_lock(&cfhsi_list_lock);
}
Expand Down

0 comments on commit c0290c2

Please sign in to comment.