| From 38a2ec46d4dc7b60d9b919ebeee5ad7458a1eb63 Mon Sep 17 00:00:00 2001 |
| From: Michal Simek <michal.simek@xilinx.com> |
| Date: Mon, 30 Sep 2013 09:28:36 +0200 |
| Subject: char: hwicap: Remove unnecessary dev_set_drvdata() |
| |
| Driver core clears the driver data to NULL after device_release |
| or on probe failure, so just remove it from here. |
| |
| Signed-off-by: Michal Simek <michal.simek@xilinx.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| (cherry picked from commit 12b3af3096cdfb0613da374021167868c6abc9ce) |
| Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp> |
| Signed-off-by: Yoshitake Kobayashi <yoshitake.kobayashi@toshiba.co.jp> |
| --- |
| drivers/char/xilinx_hwicap/xilinx_hwicap.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c |
| index a7f65c2b2cb5..f6345f932e46 100644 |
| --- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c |
| +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c |
| @@ -731,7 +731,6 @@ static int hwicap_remove(struct device *dev) |
| iounmap(drvdata->base_address); |
| release_mem_region(drvdata->mem_start, drvdata->mem_size); |
| kfree(drvdata); |
| - dev_set_drvdata(dev, NULL); |
| |
| mutex_lock(&icap_sem); |
| probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; |
| -- |
| 1.8.5.rc3 |
| |