jsm: remove remaining flip buffer code
The flip buffer is not used anymore. Remove its allocation and declaration in the board structure. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a16913a9b3
commit
d64bbeb57f
@@ -160,27 +160,10 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device
|
||||
dev_info(&pdev->dev, "board %d: Digi Neo (rev %d), irq %d\n",
|
||||
adapter_count, brd->rev, brd->irq);
|
||||
|
||||
/*
|
||||
* allocate flip buffer for board.
|
||||
*
|
||||
* Okay to malloc with GFP_KERNEL, we are not at interrupt
|
||||
* context, and there are no locks held.
|
||||
*/
|
||||
brd->flipbuf = kzalloc(MYFLIPLEN, GFP_KERNEL);
|
||||
if (!brd->flipbuf) {
|
||||
/* XXX: leaking all resources from jsm_tty_init and
|
||||
jsm_uart_port_init here! */
|
||||
dev_err(&pdev->dev, "memory allocation for flipbuf failed\n");
|
||||
rc = -ENOMEM;
|
||||
goto out_free_uart;
|
||||
}
|
||||
|
||||
pci_set_drvdata(pdev, brd);
|
||||
pci_save_state(pdev);
|
||||
|
||||
return 0;
|
||||
out_free_uart:
|
||||
jsm_remove_uart_port(brd);
|
||||
out_free_irq:
|
||||
jsm_remove_uart_port(brd);
|
||||
free_irq(brd->irq, brd);
|
||||
@@ -218,7 +201,6 @@ static void __devexit jsm_remove_one(struct pci_dev *pdev)
|
||||
|
||||
pci_release_regions(pdev);
|
||||
pci_disable_device(pdev);
|
||||
kfree(brd->flipbuf);
|
||||
kfree(brd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user