Commit 12b3af3096cdfb0613da374021167868c6abc9ce

Authored by Michal Simek
Committed by Greg Kroah-Hartman
1 parent bc34268976

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/char/xilinx_hwicap/xilinx_hwicap.c
... ... @@ -731,7 +731,6 @@
731 731 iounmap(drvdata->base_address);
732 732 release_mem_region(drvdata->mem_start, drvdata->mem_size);
733 733 kfree(drvdata);
734   - dev_set_drvdata(dev, NULL);
735 734  
736 735 mutex_lock(&icap_sem);
737 736 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0;