Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2dd4d163
Commit
2dd4d163
authored
Feb 02, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: remove open-coded version of remove_conflicting_pci_framebuffers()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
fb172f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.c
+3
-28
No files found.
drivers/gpu/drm/nouveau/nouveau_drm.c
View file @
2dd4d163
...
...
@@ -681,8 +681,6 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
{
struct
nvkm_device
*
device
;
struct
drm_device
*
drm_dev
;
struct
apertures_struct
*
aper
;
bool
boot
=
false
;
int
ret
;
if
(
vga_switcheroo_client_probe_defer
(
pdev
))
...
...
@@ -699,32 +697,9 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
nvkm_device_del
(
&
device
);
/* Remove conflicting drivers (vesafb, efifb etc). */
aper
=
alloc_apertures
(
3
);
if
(
!
aper
)
return
-
ENOMEM
;
aper
->
ranges
[
0
].
base
=
pci_resource_start
(
pdev
,
1
);
aper
->
ranges
[
0
].
size
=
pci_resource_len
(
pdev
,
1
);
aper
->
count
=
1
;
if
(
pci_resource_len
(
pdev
,
2
))
{
aper
->
ranges
[
aper
->
count
].
base
=
pci_resource_start
(
pdev
,
2
);
aper
->
ranges
[
aper
->
count
].
size
=
pci_resource_len
(
pdev
,
2
);
aper
->
count
++
;
}
if
(
pci_resource_len
(
pdev
,
3
))
{
aper
->
ranges
[
aper
->
count
].
base
=
pci_resource_start
(
pdev
,
3
);
aper
->
ranges
[
aper
->
count
].
size
=
pci_resource_len
(
pdev
,
3
);
aper
->
count
++
;
}
#ifdef CONFIG_X86
boot
=
pdev
->
resource
[
PCI_ROM_RESOURCE
].
flags
&
IORESOURCE_ROM_SHADOW
;
#endif
if
(
nouveau_modeset
!=
2
)
drm_fb_helper_remove_conflicting_framebuffers
(
aper
,
"nouveaufb"
,
boot
);
kfree
(
aper
);
ret
=
remove_conflicting_pci_framebuffers
(
pdev
,
"nouveaufb"
);
if
(
ret
)
return
ret
;
ret
=
nvkm_device_pci_new
(
pdev
,
nouveau_config
,
nouveau_debug
,
true
,
true
,
~
0ULL
,
&
device
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment