Skip to content

Commit

Permalink
x86: olpc-xo1-sci: Remove invocation of MFD's .enable()/.disable() ca…
Browse files Browse the repository at this point in the history
…ll-backs

IO regions are now requested and released by this device's parent.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
  • Loading branch information
Lee Jones committed Nov 11, 2019
1 parent 0cfe013 commit 504c3fa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/x86/platform/olpc/olpc-xo1-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_wakeup.h>
#include <linux/mfd/core.h>
#include <linux/power_supply.h>
#include <linux/suspend.h>
#include <linux/workqueue.h>
Expand Down Expand Up @@ -537,10 +536,6 @@ static int xo1_sci_probe(struct platform_device *pdev)
if (!machine_is_olpc())
return -ENODEV;

r = mfd_cell_enable(pdev);
if (r)
return r;

res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (!res) {
dev_err(&pdev->dev, "can't fetch device resource info\n");
Expand Down Expand Up @@ -605,7 +600,6 @@ static int xo1_sci_probe(struct platform_device *pdev)

static int xo1_sci_remove(struct platform_device *pdev)
{
mfd_cell_disable(pdev);
free_irq(sci_irq, pdev);
cancel_work_sync(&sci_work);
free_ec_sci();
Expand Down

0 comments on commit 504c3fa

Please sign in to comment.