~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/gpio/janz-ttl.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <linux/interrupt.h>
16
16
#include <linux/delay.h>
17
17
#include <linux/platform_device.h>
18
 
#include <linux/mfd/core.h>
19
18
#include <linux/io.h>
20
19
#include <linux/gpio.h>
21
20
#include <linux/slab.h>
150
149
        struct resource *res;
151
150
        int ret;
152
151
 
153
 
        pdata = mfd_get_data(pdev);
 
152
        pdata = pdev->dev.platform_data;
154
153
        if (!pdata) {
155
154
                dev_err(dev, "no platform data\n");
156
155
                ret = -ENXIO;