Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f3f6f9aa
Commit
f3f6f9aa
authored
Oct 18, 2006
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[platinumfb] Ifdef for when CONFIG_NVRAM isn't enabled.
Signed-off-by:
Ben Collins
<
bcollins@ubuntu.com
>
parent
b023429c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/video/platinumfb.c
drivers/video/platinumfb.c
+4
-1
No files found.
drivers/video/platinumfb.c
View file @
f3f6f9aa
...
...
@@ -339,11 +339,12 @@ static int __devinit platinum_init_fb(struct fb_info *info)
sense
=
read_platinum_sense
(
pinfo
);
printk
(
KERN_INFO
"platinumfb: Monitor sense value = 0x%x, "
,
sense
);
if
(
default_vmode
==
VMODE_NVRAM
)
{
#ifdef CONFIG_NVRAM
default_vmode
=
nvram_read_byte
(
NV_VMODE
);
if
(
default_vmode
<=
0
||
default_vmode
>
VMODE_MAX
||
!
platinum_reg_init
[
default_vmode
-
1
])
#endif
default_vmode
=
VMODE_CHOOSE
;
}
if
(
default_vmode
==
VMODE_CHOOSE
)
{
...
...
@@ -351,8 +352,10 @@ static int __devinit platinum_init_fb(struct fb_info *info)
}
if
(
default_vmode
<=
0
||
default_vmode
>
VMODE_MAX
)
default_vmode
=
VMODE_640_480_60
;
#ifdef CONFIG_NVRAM
if
(
default_cmode
==
CMODE_NVRAM
)
default_cmode
=
nvram_read_byte
(
NV_CMODE
);
#endif
if
(
default_cmode
<
CMODE_8
||
default_cmode
>
CMODE_32
)
default_cmode
=
CMODE_8
;
/*
...
...
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