diff options
Diffstat (limited to 'include/linux/zorro.h')
| -rw-r--r-- | include/linux/zorro.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/linux/zorro.h b/include/linux/zorro.h index ba5b72768bbe..2f135cf6eef1 100644 --- a/include/linux/zorro.h +++ b/include/linux/zorro.h | |||
| @@ -271,39 +271,6 @@ static inline void zorro_set_drvdata (struct zorro_dev *z, void *data) | |||
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | 273 | ||
| 274 | /* | ||
| 275 | * A helper function which helps ensure correct zorro_driver | ||
| 276 | * setup and cleanup for commonly-encountered hotplug/modular cases | ||
| 277 | * | ||
| 278 | * This MUST stay in a header, as it checks for -DMODULE | ||
| 279 | */ | ||
| 280 | static inline int zorro_module_init(struct zorro_driver *drv) | ||
| 281 | { | ||
| 282 | int rc = zorro_register_driver(drv); | ||
| 283 | |||
| 284 | if (rc > 0) | ||
| 285 | return 0; | ||
| 286 | |||
| 287 | /* iff CONFIG_HOTPLUG and built into kernel, we should | ||
| 288 | * leave the driver around for future hotplug events. | ||
| 289 | * For the module case, a hotplug daemon of some sort | ||
| 290 | * should load a module in response to an insert event. */ | ||
| 291 | #if defined(CONFIG_HOTPLUG) && !defined(MODULE) | ||
| 292 | if (rc == 0) | ||
| 293 | return 0; | ||
| 294 | #else | ||
| 295 | if (rc == 0) | ||
| 296 | rc = -ENODEV; | ||
| 297 | #endif | ||
| 298 | |||
| 299 | /* if we get here, we need to clean up Zorro driver instance | ||
| 300 | * and return some sort of error */ | ||
| 301 | zorro_unregister_driver(drv); | ||
| 302 | |||
| 303 | return rc; | ||
| 304 | } | ||
| 305 | |||
| 306 | |||
| 307 | /* | 274 | /* |
| 308 | * Bitmask indicating portions of available Zorro II RAM that are unused | 275 | * Bitmask indicating portions of available Zorro II RAM that are unused |
| 309 | * by the system. Every bit represents a 64K chunk, for a maximum of 8MB | 276 | * by the system. Every bit represents a 64K chunk, for a maximum of 8MB |
