diff options
Diffstat (limited to 'drivers/misc/ibmasm')
-rw-r--r-- | drivers/misc/ibmasm/module.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c index 0c290e40ce06..6b3bf9ab051d 100644 --- a/drivers/misc/ibmasm/module.c +++ b/drivers/misc/ibmasm/module.c | |||
@@ -153,7 +153,6 @@ error_ioremap: | |||
153 | error_heartbeat: | 153 | error_heartbeat: |
154 | ibmasm_event_buffer_exit(sp); | 154 | ibmasm_event_buffer_exit(sp); |
155 | error_eventbuffer: | 155 | error_eventbuffer: |
156 | pci_set_drvdata(pdev, NULL); | ||
157 | kfree(sp); | 156 | kfree(sp); |
158 | error_kmalloc: | 157 | error_kmalloc: |
159 | pci_release_regions(pdev); | 158 | pci_release_regions(pdev); |
@@ -182,7 +181,6 @@ static void ibmasm_remove_one(struct pci_dev *pdev) | |||
182 | ibmasm_free_remote_input_dev(sp); | 181 | ibmasm_free_remote_input_dev(sp); |
183 | iounmap(sp->base_address); | 182 | iounmap(sp->base_address); |
184 | ibmasm_event_buffer_exit(sp); | 183 | ibmasm_event_buffer_exit(sp); |
185 | pci_set_drvdata(pdev, NULL); | ||
186 | kfree(sp); | 184 | kfree(sp); |
187 | pci_release_regions(pdev); | 185 | pci_release_regions(pdev); |
188 | pci_disable_device(pdev); | 186 | pci_disable_device(pdev); |