/* This will tear down the tty portion of the driver */ static void __exit hvc_rtas_exit(void) { /* Really the fun isn't over until the worker thread breaks down and * the tty cleans up */ if (hvc_rtas_dev) hvc_remove(hvc_rtas_dev); }
static int hvc_tile_remove(struct platform_device *pdev) { int rc; struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); rc = hvc_remove(hp); if (rc == 0) irq_free_hwirq(hp->data); return rc; }
static int __devexit hvc_vio_remove(struct vio_dev *vdev) { struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); int rc, termno; termno = hp->vtermno; rc = hvc_remove(hp); if (rc == 0) { if (hvterm_privs[termno] != &hvterm_priv0) kfree(hvterm_privs[termno]); hvterm_privs[termno] = NULL; } return rc; }
static void __exit hvc_udbg_exit(void) { if (hvc_udbg_dev) hvc_remove(hvc_udbg_dev); }
static void __exit xen_hvc_fini(void) { if (hvc) hvc_remove(hvc); }
static void __exit hvc_beat_exit(void) { if (hvc_beat_dev) hvc_remove(hvc_beat_dev); }
static void __exit hvc_rtas_exit(void) { if (hvc_rtas_dev) hvc_remove(hvc_rtas_dev); }
static int __devexit hvc_vio_remove(struct vio_dev *vdev) { struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); return hvc_remove(hp); }
static int __devexit hvc_bgq_remove(struct platform_device *dev) { struct hvc_struct *hp = dev_get_drvdata(&dev->dev); return hvc_remove(hp); }