diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/pnp/driver.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/pnp/driver.c')
-rw-r--r-- | drivers/pnp/driver.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pnp/driver.c b/drivers/pnp/driver.c index cd11b113494f..00e94032531a 100644 --- a/drivers/pnp/driver.c +++ b/drivers/pnp/driver.c | |||
@@ -189,8 +189,11 @@ static int pnp_bus_resume(struct device *dev) | |||
189 | if (!pnp_drv) | 189 | if (!pnp_drv) |
190 | return 0; | 190 | return 0; |
191 | 191 | ||
192 | if (pnp_dev->protocol->resume) | 192 | if (pnp_dev->protocol->resume) { |
193 | pnp_dev->protocol->resume(pnp_dev); | 193 | error = pnp_dev->protocol->resume(pnp_dev); |
194 | if (error) | ||
195 | return error; | ||
196 | } | ||
194 | 197 | ||
195 | if (pnp_can_write(pnp_dev)) { | 198 | if (pnp_can_write(pnp_dev)) { |
196 | error = pnp_start_dev(pnp_dev); | 199 | error = pnp_start_dev(pnp_dev); |
@@ -236,7 +239,7 @@ void pnp_unregister_driver(struct pnp_driver *drv) | |||
236 | * @dev: pointer to the desired device | 239 | * @dev: pointer to the desired device |
237 | * @id: pointer to an EISA id string | 240 | * @id: pointer to an EISA id string |
238 | */ | 241 | */ |
239 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id) | 242 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id) |
240 | { | 243 | { |
241 | struct pnp_id *dev_id, *ptr; | 244 | struct pnp_id *dev_id, *ptr; |
242 | 245 | ||