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

« back to all changes in this revision

Viewing changes to drivers/hwmon/twl4030-madc-hwmon.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:
98
98
static int __devinit twl4030_madc_hwmon_probe(struct platform_device *pdev)
99
99
{
100
100
        int ret;
101
 
        int status;
102
101
        struct device *hwmon;
103
102
 
104
103
        ret = sysfs_create_group(&pdev->dev.kobj, &twl4030_madc_group);
107
106
        hwmon = hwmon_device_register(&pdev->dev);
108
107
        if (IS_ERR(hwmon)) {
109
108
                dev_err(&pdev->dev, "hwmon_device_register failed.\n");
110
 
                status = PTR_ERR(hwmon);
 
109
                ret = PTR_ERR(hwmon);
111
110
                goto err_reg;
112
111
        }
113
112
 
154
153
MODULE_DESCRIPTION("TWL4030 ADC Hwmon driver");
155
154
MODULE_LICENSE("GPL");
156
155
MODULE_AUTHOR("J Keerthy");
157
 
MODULE_ALIAS("twl4030_madc_hwmon");
 
156
MODULE_ALIAS("platform:twl4030_madc_hwmon");