aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pnp/driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/driver.c b/drivers/pnp/driver.c
index 12a1645a2e43..e85cbf116db1 100644
--- a/drivers/pnp/driver.c
+++ b/drivers/pnp/driver.c
@@ -167,7 +167,7 @@ static int pnp_bus_suspend(struct device *dev, pm_message_t state)
167 return error; 167 return error;
168 } 168 }
169 169
170 if (pnp_dev->protocol && pnp_dev->protocol->suspend) 170 if (pnp_dev->protocol->suspend)
171 pnp_dev->protocol->suspend(pnp_dev, state); 171 pnp_dev->protocol->suspend(pnp_dev, state);
172 return 0; 172 return 0;
173} 173}
@@ -181,7 +181,7 @@ static int pnp_bus_resume(struct device *dev)
181 if (!pnp_drv) 181 if (!pnp_drv)
182 return 0; 182 return 0;
183 183
184 if (pnp_dev->protocol && pnp_dev->protocol->resume) 184 if (pnp_dev->protocol->resume)
185 pnp_dev->protocol->resume(pnp_dev); 185 pnp_dev->protocol->resume(pnp_dev);
186 186
187 if (pnp_can_write(pnp_dev)) { 187 if (pnp_can_write(pnp_dev)) {