* Allocate the IRQ
*/
- retval = request_irq(info->irq, rs_interrupt_single, IRQF_SHARED,
+ retval = request_irq(info->irq, rs_interrupt_single, SA_SHIRQ,
"esp serial", info);
if (retval) {
if (serial_paranoia_check(info, tty->name, "rs_put_char"))
return;
- if (!info->xmit_buf)
+ if (!tty || !info->xmit_buf)
return;
spin_lock_irqsave(&info->lock, flags);
if (serial_paranoia_check(info, tty->name, "rs_write"))
return 0;
- if (!info->xmit_buf)
+ if (!tty || !info->xmit_buf)
return 0;
while (1) {
esp_driver->owner = THIS_MODULE;
esp_driver->name = "ttyP";
+ esp_driver->devfs_name = "tts/P";
esp_driver->major = ESP_IN_MAJOR;
esp_driver->minor_start = 0;
esp_driver->type = TTY_DRIVER_TYPE_SERIAL;