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

« back to all changes in this revision

Viewing changes to drivers/rtc/rtc-ep93xx.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:
151
151
                return -ENXIO;
152
152
 
153
153
        pdev->dev.platform_data = ep93xx_rtc;
 
154
        platform_set_drvdata(pdev, rtc);
154
155
 
155
156
        rtc = rtc_device_register(pdev->name,
156
157
                                &pdev->dev, &ep93xx_rtc_ops, THIS_MODULE);
159
160
                goto exit;
160
161
        }
161
162
 
162
 
        platform_set_drvdata(pdev, rtc);
163
 
 
164
163
        err = sysfs_create_group(&pdev->dev.kobj, &ep93xx_rtc_sysfs_files);
165
164
        if (err)
166
165
                goto fail;
168
167
        return 0;
169
168
 
170
169
fail:
171
 
        platform_set_drvdata(pdev, NULL);
172
170
        rtc_device_unregister(rtc);
173
171
exit:
 
172
        platform_set_drvdata(pdev, NULL);
174
173
        pdev->dev.platform_data = NULL;
175
174
        return err;
176
175
}