aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-07-29 08:25:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 13:17:16 -0400
commit889c27744c30eb7a43b68c11e33e679cfafc8cd5 (patch)
treea23fa04617b0511aee826a9f7d782d56c4335c28 /drivers/pcmcia
parentcb6dbd79628a53e66352387b53b426fa88640bfe (diff)
pcmcia: document return value of pcmcia_loop_config
Hopefully it will be harder to get it wrong now. Also fix an unneeded initialization while we are here. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/pcmcia_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c
index 8c2db2ac8f8a..d919e96c0afd 100644
--- a/drivers/pcmcia/pcmcia_resource.c
+++ b/drivers/pcmcia/pcmcia_resource.c
@@ -902,7 +902,7 @@ struct pcmcia_cfg_mem {
902 * 902 *
903 * pcmcia_loop_config() loops over all configuration options, and calls 903 * pcmcia_loop_config() loops over all configuration options, and calls
904 * the driver-specific conf_check() for each one, checking whether 904 * the driver-specific conf_check() for each one, checking whether
905 * it is a valid one. 905 * it is a valid one. Returns 0 on success or errorcode otherwise.
906 */ 906 */
907int pcmcia_loop_config(struct pcmcia_device *p_dev, 907int pcmcia_loop_config(struct pcmcia_device *p_dev,
908 int (*conf_check) (struct pcmcia_device *p_dev, 908 int (*conf_check) (struct pcmcia_device *p_dev,
@@ -915,7 +915,7 @@ int pcmcia_loop_config(struct pcmcia_device *p_dev,
915 struct pcmcia_cfg_mem *cfg_mem; 915 struct pcmcia_cfg_mem *cfg_mem;
916 916
917 tuple_t *tuple; 917 tuple_t *tuple;
918 int ret = -ENODEV; 918 int ret;
919 unsigned int vcc; 919 unsigned int vcc;
920 920
921 cfg_mem = kzalloc(sizeof(struct pcmcia_cfg_mem), GFP_KERNEL); 921 cfg_mem = kzalloc(sizeof(struct pcmcia_cfg_mem), GFP_KERNEL);