Re: [PATCH 1/4] media-radio: Pci probing for maestro radio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Jiri Slaby" <[email protected]> wrote:
>
> +	retval = video_register_device(maestro_radio_inst, VFL_TYPE_RADIO,
>  +		radio_nr);
>  +	if (retval) {
>  +		printk(KERN_ERR "can't register video device!\n");
>  +		goto errfr1;
>  +	}
>  +
>  +	if (!radio_power_on(radio_unit)) {
>  +		retval = -EIO;

Shouldn't we unregister the video device here?

>  +		goto errfr1;
>  +	}
>  +
>  +	dev_info(&pdev->dev, "version " DRIVER_VERSION " time " __TIME__ "  "
>  +		__DATE__ "\n");
>  +	dev_info(&pdev->dev, "radio chip initialized\n");
>  +
>  +	return 0;
>  +errfr1:
>  +	kfree(maestro_radio_inst);
>  +errfr:
>  +	kfree(radio_unit);
>  +err:
>  +	return retval;
>  +
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux