Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251834
b: refs/heads/master
c: 11383a9
h: refs/heads/master
v: v3
  • Loading branch information
Igor Grinberg authored and Tony Lindgren committed May 3, 2011
1 parent e629a20 commit 40c4713
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21b42731e6ab1ccbbe9ad1b639c5d78eecad8432
refs/heads/master: 11383a9bcc213cd2b55e2aef863ef2a8b3d7b62c
14 changes: 7 additions & 7 deletions trunk/arch/arm/mach-omap2/gpmc-smsc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__

#include <linux/kernel.h>
#include <linux/platform_device.h>
Expand Down Expand Up @@ -55,16 +56,15 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data)
gpmc_cfg = board_data;

if (gpmc_cs_request(gpmc_cfg->cs, SZ_16M, &cs_mem_base) < 0) {
printk(KERN_ERR "Failed to request GPMC mem for smsc911x\n");
pr_err("Failed to request GPMC mem region\n");
return;
}

gpmc_smsc911x_resources[0].start = cs_mem_base + 0x0;
gpmc_smsc911x_resources[0].end = cs_mem_base + 0xff;

if (gpio_request(gpmc_cfg->gpio_irq, "smsc911x irq") < 0) {
printk(KERN_ERR "Failed to request GPIO%d for smsc911x IRQ\n",
gpmc_cfg->gpio_irq);
pr_err("Failed to request IRQ GPIO%d\n", gpmc_cfg->gpio_irq);
goto free1;
}

Expand All @@ -74,8 +74,8 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data)
if (gpio_is_valid(gpmc_cfg->gpio_reset)) {
ret = gpio_request(gpmc_cfg->gpio_reset, "smsc911x reset");
if (ret) {
printk(KERN_ERR "Failed to request GPIO%d for smsc911x reset\n",
gpmc_cfg->gpio_reset);
pr_err("Failed to request reset GPIO%d\n",
gpmc_cfg->gpio_reset);
goto free2;
}

Expand All @@ -92,7 +92,7 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data)
gpmc_smsc911x_resources, ARRAY_SIZE(gpmc_smsc911x_resources),
&gpmc_smsc911x_config, sizeof(gpmc_smsc911x_config));
if (!pdev) {
printk(KERN_ERR "Unable to register smsc911x device\n");
pr_err("Unable to register platform device\n");
gpio_free(gpmc_cfg->gpio_reset);
goto free2;
}
Expand All @@ -104,5 +104,5 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data)
free1:
gpmc_cs_free(gpmc_cfg->cs);

printk(KERN_ERR "Could not initialize smsc911x\n");
pr_err("Could not initialize smsc911x device\n");
}
3 changes: 1 addition & 2 deletions trunk/arch/arm/plat-omap/include/plat/gpmc-smsc911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ struct omap_smsc911x_platform_data {
u32 flags;
};

#if defined(CONFIG_SMSC911X) || \
defined(CONFIG_SMSC911X_MODULE)
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)

extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d);

Expand Down

0 comments on commit 40c4713

Please sign in to comment.