提交 02eb261d 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: sm7xxfb: Remove redundant pci_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 477c81f0
...@@ -933,7 +933,6 @@ static void smtcfb_pci_remove(struct pci_dev *pdev) ...@@ -933,7 +933,6 @@ static void smtcfb_pci_remove(struct pci_dev *pdev)
struct smtcfb_info *sfb; struct smtcfb_info *sfb;
sfb = pci_get_drvdata(pdev); sfb = pci_get_drvdata(pdev);
pci_set_drvdata(pdev, NULL);
smtc_unmap_smem(sfb); smtc_unmap_smem(sfb);
smtc_unmap_mmio(sfb); smtc_unmap_mmio(sfb);
unregister_framebuffer(&sfb->fb); unregister_framebuffer(&sfb->fb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册