staging: sm7xxfb: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
477c81f025
commit
02eb261da3
|
@ -933,7 +933,6 @@ static void smtcfb_pci_remove(struct pci_dev *pdev)
|
|||
struct smtcfb_info *sfb;
|
||||
|
||||
sfb = pci_get_drvdata(pdev);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
smtc_unmap_smem(sfb);
|
||||
smtc_unmap_mmio(sfb);
|
||||
unregister_framebuffer(&sfb->fb);
|
||||
|
|
Loading…
Reference in New Issue