Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367435
b: refs/heads/master
c: e436ddf
h: refs/heads/master
i:
  367433: 97a89f7
  367431: 204cae9
v: v3
  • Loading branch information
Lee Jones committed Mar 7, 2013
1 parent 45c5c99 commit 304aa88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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: 2377e52f7ca8ebe6ba9ad0e6173915538ee4808b
refs/heads/master: e436ddff5748c459853bb3fb97550a9b8b647b8d
9 changes: 6 additions & 3 deletions trunk/drivers/mfd/ab8500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ static ssize_t show_chip_id(struct device *dev,
struct ab8500 *ab8500;

ab8500 = dev_get_drvdata(dev);

return sprintf(buf, "%#x\n", ab8500 ? ab8500->chip_id : -EINVAL);
}

Expand Down Expand Up @@ -1676,7 +1677,7 @@ static int ab8500_probe(struct platform_device *pdev)

/* Activate this feature only in ab9540 */
/* till tests are done on ab8500 1p2 or later*/
if (is_ab9540(ab8500)) {
if (is_ab9540(ab8500) || is_ab8540(ab8500))
ret = devm_request_threaded_irq(&pdev->dev, ab8500->irq, NULL,
ab8500_hierarchical_irq,
IRQF_ONESHOT | IRQF_NO_SUSPEND,
Expand Down Expand Up @@ -1719,7 +1720,8 @@ static int ab8500_probe(struct platform_device *pdev)
dev_err(ab8500->dev, "error adding bm devices\n");
}

if (is_ab9540(ab8500))
if (((is_ab8505(ab8500) || is_ab9540(ab8500)) &&
ab8500->chip_id >= AB8500_CUT2P0) || is_ab8540(ab8500))
ret = sysfs_create_group(&ab8500->dev->kobj,
&ab9540_attr_group);
else
Expand All @@ -1735,7 +1737,8 @@ static int ab8500_remove(struct platform_device *pdev)
{
struct ab8500 *ab8500 = platform_get_drvdata(pdev);

if (is_ab9540(ab8500))
if (((is_ab8505(ab8500) || is_ab9540(ab8500)) &&
ab8500->chip_id >= AB8500_CUT2P0) || is_ab8540(ab8500))
sysfs_remove_group(&ab8500->dev->kobj, &ab9540_attr_group);
else
sysfs_remove_group(&ab8500->dev->kobj, &ab8500_attr_group);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/mfd/ab8500-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,8 @@ static int ab8500_debug_probe(struct platform_device *plf)
num_interrupt_lines = AB8505_NR_IRQS;
else if (is_ab9540(ab8500))
num_interrupt_lines = AB9540_NR_IRQS;
else if (is_ab8540(ab8500))
num_interrupt_lines = AB8540_NR_IRQS;

file = debugfs_create_file("interrupts", (S_IRUGO),
ab8500_dir, &plf->dev, &ab8500_interrupts_fops);
Expand Down

0 comments on commit 304aa88

Please sign in to comment.