--- zzzz-none-000/linux-3.10.107/drivers/media/pci/bt8xx/bttv-gpio.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/media/pci/bt8xx/bttv-gpio.c 2021-02-04 17:41:59.000000000 +0000 @@ -98,7 +98,7 @@ err = device_register(&sub->dev); if (0 != err) { - kfree(sub); + put_device(&sub->dev); return err; } pr_info("%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev)); @@ -181,9 +181,3 @@ btwrite(data,BT848_GPIO_DATA); spin_unlock_irqrestore(&btv->gpio_lock,flags); } - -/* - * Local variables: - * c-basic-offset: 8 - * End: - */