Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104068
b: refs/heads/master
c: 065032f
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Zabel authored and Samuel Ortiz committed Jul 20, 2008
1 parent c61dca2 commit 64804a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 3b8139f8b1457af7b5295d97050b3f9a2545a17a
refs/heads/master: 065032f61bd9acdb843766da3149de12eaf87c0b
11 changes: 5 additions & 6 deletions trunk/drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static struct irq_chip asic3_irq_chip = {
.unmask = asic3_unmask_irq,
};

static int asic3_irq_probe(struct platform_device *pdev)
static int __init asic3_irq_probe(struct platform_device *pdev)
{
struct asic3 *asic = platform_get_drvdata(pdev);
unsigned long clksel = 0;
Expand Down Expand Up @@ -464,8 +464,8 @@ static void asic3_gpio_set(struct gpio_chip *chip,
return;
}

static int asic3_gpio_probe(struct platform_device *pdev,
u16 *gpio_config, int num)
static __init int asic3_gpio_probe(struct platform_device *pdev,
u16 *gpio_config, int num)
{
struct asic3 *asic = platform_get_drvdata(pdev);
u16 alt_reg[ASIC3_NUM_GPIO_BANKS];
Expand Down Expand Up @@ -526,7 +526,7 @@ static int asic3_gpio_remove(struct platform_device *pdev)


/* Core */
static int asic3_probe(struct platform_device *pdev)
static int __init asic3_probe(struct platform_device *pdev)
{
struct asic3_platform_data *pdata = pdev->dev.platform_data;
struct asic3 *asic;
Expand Down Expand Up @@ -633,15 +633,14 @@ static struct platform_driver asic3_device_driver = {
.driver = {
.name = "asic3",
},
.probe = asic3_probe,
.remove = __devexit_p(asic3_remove),
.shutdown = asic3_shutdown,
};

static int __init asic3_init(void)
{
int retval = 0;
retval = platform_driver_register(&asic3_device_driver);
retval = platform_driver_probe(&asic3_device_driver, asic3_probe);
return retval;
}

Expand Down

0 comments on commit 64804a6

Please sign in to comment.