From: Andrew Morton <akpm@osdl.org>
To: "Jiri Slaby" <xslaby@fi.muni.cz>
Cc: linux-kernel@vger.kernel.org, atlka@pg.gda.pl, greg@kroah.com
Subject: Re: [PATCH 1/4] media-radio: Pci probing for maestro radio
Date: Wed, 4 Jan 2006 01:45:32 -0800 [thread overview]
Message-ID: <20060104014532.3909a51e.akpm@osdl.org> (raw)
In-Reply-To: <20051231161634.422661E32EE@anxur.fi.muni.cz>
"Jiri Slaby" <xslaby@fi.muni.cz> 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;
> +
next prev parent reply other threads:[~2006-01-04 9:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-31 16:16 [PATCH 0/4] maestro radio driver rewritten to 2.6 pci api Jiri Slaby
2005-12-31 16:16 ` [PATCH 2/4] media-radio: Maestro radio Lindent Jiri Slaby
2005-12-31 16:16 ` [PATCH 1/4] media-radio: Pci probing for maestro radio Jiri Slaby
2006-01-04 9:45 ` Andrew Morton [this message]
2006-01-04 9:51 ` Adam Tlałka
2006-01-04 10:22 ` [PATCH] media-radio: video device unregister in one fail case [Was: Re: [PATCH 1/4] media-radio: Pci probing for maestro radio] Jiri Slaby
2005-12-31 16:16 ` [PATCH 3/4] media-radio: Maestro types change Jiri Slaby
2005-12-31 16:16 ` [PATCH 4/4] media-radio: Maestro avoid accessing private structures directly Jiri Slaby
2005-12-31 16:36 ` [PATCH 5/4 :) I forgot] media-radio: Maestro radio delete owner line from video device Jiri Slaby
2005-12-31 16:37 ` [PATCH 0/5] maestro radio driver rewritten to 2.6 pci api Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060104014532.3909a51e.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=atlka@pg.gda.pl \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xslaby@fi.muni.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®