diff options
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index d033a65f4e4e..c248b309415b 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c | |||
@@ -123,7 +123,7 @@ static int __init sr_dev_init(struct omap_hwmod *oh, void *user) | |||
123 | sr_data->senp_mod = 0x1; | 123 | sr_data->senp_mod = 0x1; |
124 | 124 | ||
125 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); | 125 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); |
126 | if (IS_ERR(sr_data->voltdm)) { | 126 | if (!sr_data->voltdm) { |
127 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", | 127 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", |
128 | __func__, sr_dev_attr->sensor_voltdm_name); | 128 | __func__, sr_dev_attr->sensor_voltdm_name); |
129 | goto exit; | 129 | goto exit; |