Daniel Vetter af26ef3b39 drm/<drivers>: Unified handling of unimplemented fb->create_handle
Some drivers don't have real ->create_handle callbacks.

- cirrus/ast/mga200: Returns either 0 or -EINVAL.

- udl: Didn't even bother with a callback, leading to a nice
  userspace-triggerable OOPS.

- vmwgfx: This driver bothered with an implementation to return 0 as
  the handle (which is the canonical no-obj gem handle).

All have in common that ->create_handle doesn't really make too much
sense for them - that ioctl is used only for seamless fb takeover in
the radeon/nouveau/i915 ddx drivers. So allow drivers to not implement
this and return a consistent -ENODEV.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-01-20 15:57:57 +01:00
..
2013-01-08 18:53:56 -08:00
2013-01-08 18:53:56 -08:00
2013-01-14 09:08:38 -08:00
2013-01-16 11:33:52 -08:00
2013-01-10 14:35:23 -08:00
2013-01-08 18:53:56 -08:00
2013-01-08 18:53:56 -08:00
2013-01-16 15:57:54 +01:00
2013-01-14 09:07:57 -08:00