diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/hwmon/i5k_amb.c | 2 | ||||
| -rw-r--r-- | drivers/hwmon/lis3lv02d_i2c.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index 937983407e2a..c4c40be0edbf 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c | |||
| @@ -497,12 +497,14 @@ static unsigned long chipset_ids[] = { | |||
| 497 | 0 | 497 | 0 |
| 498 | }; | 498 | }; |
| 499 | 499 | ||
| 500 | #ifdef MODULE | ||
| 500 | static struct pci_device_id i5k_amb_ids[] __devinitdata = { | 501 | static struct pci_device_id i5k_amb_ids[] __devinitdata = { |
| 501 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, | 502 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, |
| 502 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, | 503 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, |
| 503 | { 0, } | 504 | { 0, } |
| 504 | }; | 505 | }; |
| 505 | MODULE_DEVICE_TABLE(pci, i5k_amb_ids); | 506 | MODULE_DEVICE_TABLE(pci, i5k_amb_ids); |
| 507 | #endif | ||
| 506 | 508 | ||
| 507 | static int __devinit i5k_amb_probe(struct platform_device *pdev) | 509 | static int __devinit i5k_amb_probe(struct platform_device *pdev) |
| 508 | { | 510 | { |
diff --git a/drivers/hwmon/lis3lv02d_i2c.c b/drivers/hwmon/lis3lv02d_i2c.c index 9f4bae07f719..8853afce85ce 100644 --- a/drivers/hwmon/lis3lv02d_i2c.c +++ b/drivers/hwmon/lis3lv02d_i2c.c | |||
| @@ -186,7 +186,7 @@ static int __devexit lis3lv02d_i2c_remove(struct i2c_client *client) | |||
| 186 | return 0; | 186 | return 0; |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | #ifdef CONFIG_PM | 189 | #ifdef CONFIG_PM_SLEEP |
| 190 | static int lis3lv02d_i2c_suspend(struct device *dev) | 190 | static int lis3lv02d_i2c_suspend(struct device *dev) |
| 191 | { | 191 | { |
| 192 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 192 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); |
| @@ -213,12 +213,9 @@ static int lis3lv02d_i2c_resume(struct device *dev) | |||
| 213 | 213 | ||
| 214 | return 0; | 214 | return 0; |
| 215 | } | 215 | } |
| 216 | #else | 216 | #endif /* CONFIG_PM_SLEEP */ |
| 217 | #define lis3lv02d_i2c_suspend NULL | ||
| 218 | #define lis3lv02d_i2c_resume NULL | ||
| 219 | #define lis3lv02d_i2c_shutdown NULL | ||
| 220 | #endif | ||
| 221 | 217 | ||
| 218 | #ifdef CONFIG_PM_RUNTIME | ||
| 222 | static int lis3_i2c_runtime_suspend(struct device *dev) | 219 | static int lis3_i2c_runtime_suspend(struct device *dev) |
| 223 | { | 220 | { |
| 224 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 221 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); |
| @@ -236,6 +233,7 @@ static int lis3_i2c_runtime_resume(struct device *dev) | |||
| 236 | lis3lv02d_poweron(lis3); | 233 | lis3lv02d_poweron(lis3); |
| 237 | return 0; | 234 | return 0; |
| 238 | } | 235 | } |
| 236 | #endif /* CONFIG_PM_RUNTIME */ | ||
| 239 | 237 | ||
| 240 | static const struct i2c_device_id lis3lv02d_id[] = { | 238 | static const struct i2c_device_id lis3lv02d_id[] = { |
| 241 | {"lis3lv02d", 0 }, | 239 | {"lis3lv02d", 0 }, |
