We will start passing our device pointer to
read/write functions exported from retu so
we need to save the device pointer on our
context structure.

Signed-off-by: Felipe Balbi <[email protected]>
---
 drivers/cbus/retu-pwrbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/cbus/retu-pwrbutton.c b/drivers/cbus/retu-pwrbutton.c
index 593a73a..77c655d 100644
--- a/drivers/cbus/retu-pwrbutton.c
+++ b/drivers/cbus/retu-pwrbutton.c
@@ -47,6 +47,7 @@
 
 struct retu_pwrbutton {
        struct input_dev        *idev;
+       struct device           *dev;
 
        int                     state;
        int                     irq;
@@ -83,6 +84,7 @@ static int __init retubutton_probe(struct platform_device 
*pdev)
                goto err0;
        }
 
+       pwr->dev = &pdev->dev;
        pwr->irq = platform_get_irq(pdev, 0);
        platform_set_drvdata(pdev, pwr);
 
-- 
1.7.4.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to