projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cedaf7c
)
drivers/ps3: Read video= option with fb_get_option()
author
Thomas Zimmermann
<tzimmermann@suse.de>
Thu, 9 Feb 2023 13:55:02 +0000
(14:55 +0100)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Mon, 20 Feb 2023 13:56:44 +0000
(14:56 +0100)
Get the kernel's global video= parameter with fb_get_option(). Done
to unexport the internal fbdev state fb_mode_config. No functional
changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Geoff Levand <geoff@infradead.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230209135509.7786-5-tzimmermann@suse.de
drivers/ps3/ps3av.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ps3/ps3av.c
b/drivers/ps3/ps3av.c
index 516e6d14d32e88d5b090a09df3fd5e10ace41bd2..8f3e60f1bfe2f30867c87fca9d1265e5a8d6ee7f 100644
(file)
--- a/
drivers/ps3/ps3av.c
+++ b/
drivers/ps3/ps3av.c
@@
-921,6
+921,9
@@
EXPORT_SYMBOL_GPL(ps3av_audio_mute);
static int ps3av_probe(struct ps3_system_bus_device *dev)
{
+#ifdef CONFIG_FB
+ char *mode_option = NULL;
+#endif
int res;
int id;
@@
-969,8
+972,12
@@
static int ps3av_probe(struct ps3_system_bus_device *dev)
ps3av_get_hw_conf(ps3av);
#ifdef CONFIG_FB
- if (fb_mode_option && !strcmp(fb_mode_option, "safe"))
- safe_mode = 1;
+ fb_get_options(NULL, &mode_option);
+ if (mode_option) {
+ if (!strcmp(mode_option, "safe"))
+ safe_mode = 1;
+ kfree(mode_option);
+ }
#endif /* CONFIG_FB */
id = ps3av_auto_videomode(&ps3av->av_hw_conf);
if (id < 0) {