diff options
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 3e991980cee..0d04914eb05 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
@@ -237,49 +237,6 @@ int drm_lastclose(struct drm_device * dev) | |||
237 | return 0; | 237 | return 0; |
238 | } | 238 | } |
239 | 239 | ||
240 | /** | ||
241 | * Module initialization. Called via init_module at module load time, or via | ||
242 | * linux/init/main.c (this is not currently supported). | ||
243 | * | ||
244 | * \return zero on success or a negative number on failure. | ||
245 | * | ||
246 | * Initializes an array of drm_device structures, and attempts to | ||
247 | * initialize all available devices, using consecutive minors, registering the | ||
248 | * stubs and initializing the device. | ||
249 | * | ||
250 | * Expands the \c DRIVER_PREINIT and \c DRIVER_POST_INIT macros before and | ||
251 | * after the initialization for driver customization. | ||
252 | */ | ||
253 | int drm_init(struct drm_driver *driver) | ||
254 | { | ||
255 | DRM_DEBUG("\n"); | ||
256 | INIT_LIST_HEAD(&driver->device_list); | ||
257 | |||
258 | if (driver->driver_features & DRIVER_USE_PLATFORM_DEVICE) | ||
259 | return drm_platform_init(driver); | ||
260 | else | ||
261 | return drm_pci_init(driver); | ||
262 | } | ||
263 | |||
264 | EXPORT_SYMBOL(drm_init); | ||
265 | |||
266 | void drm_exit(struct drm_driver *driver) | ||
267 | { | ||
268 | struct drm_device *dev, *tmp; | ||
269 | DRM_DEBUG("\n"); | ||
270 | |||
271 | if (driver->driver_features & DRIVER_MODESET) { | ||
272 | pci_unregister_driver(&driver->pci_driver); | ||
273 | } else { | ||
274 | list_for_each_entry_safe(dev, tmp, &driver->device_list, driver_item) | ||
275 | drm_put_dev(dev); | ||
276 | } | ||
277 | |||
278 | DRM_INFO("Module unloaded\n"); | ||
279 | } | ||
280 | |||
281 | EXPORT_SYMBOL(drm_exit); | ||
282 | |||
283 | /** File operations structure */ | 240 | /** File operations structure */ |
284 | static const struct file_operations drm_stub_fops = { | 241 | static const struct file_operations drm_stub_fops = { |
285 | .owner = THIS_MODULE, | 242 | .owner = THIS_MODULE, |