mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-19 12:00:00 +00:00
drivers/ps3: Read video= option with fb_get_option()
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
This commit is contained in:
parent
cedaf7cddd
commit
cbfb263200
@ -921,6 +921,9 @@ EXPORT_SYMBOL_GPL(ps3av_audio_mute);
|
|||||||
|
|
||||||
static int ps3av_probe(struct ps3_system_bus_device *dev)
|
static int ps3av_probe(struct ps3_system_bus_device *dev)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_FB
|
||||||
|
char *mode_option = NULL;
|
||||||
|
#endif
|
||||||
int res;
|
int res;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
@ -969,8 +972,12 @@ static int ps3av_probe(struct ps3_system_bus_device *dev)
|
|||||||
ps3av_get_hw_conf(ps3av);
|
ps3av_get_hw_conf(ps3av);
|
||||||
|
|
||||||
#ifdef CONFIG_FB
|
#ifdef CONFIG_FB
|
||||||
if (fb_mode_option && !strcmp(fb_mode_option, "safe"))
|
fb_get_options(NULL, &mode_option);
|
||||||
safe_mode = 1;
|
if (mode_option) {
|
||||||
|
if (!strcmp(mode_option, "safe"))
|
||||||
|
safe_mode = 1;
|
||||||
|
kfree(mode_option);
|
||||||
|
}
|
||||||
#endif /* CONFIG_FB */
|
#endif /* CONFIG_FB */
|
||||||
id = ps3av_auto_videomode(&ps3av->av_hw_conf);
|
id = ps3av_auto_videomode(&ps3av->av_hw_conf);
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user