gpu: drm: mgag200: mgag200_main:- Handle error from pci_iomap
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 3 Jan 2017 11:30:27 +0000 (17:00 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Jan 2017 09:15:37 +0000 (10:15 +0100)
commit4b0ea93f250afc6c1128e201b0a8a115ae613e47
tree77350e0918c8be406042c5cd6641776afff4d23b
parent569265002782503d40fb32a45a950f2ac42af353
gpu: drm: mgag200: mgag200_main:- Handle error from pci_iomap

Here, pci_iomap can fail, handle this case and return -ENOMEM.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483443027-13444-1-git-send-email-arvind.yadav.cs@gmail.com
drivers/gpu/drm/mgag200/mgag200_main.c