Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starfive_fb fixes #7

Merged
merged 2 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/video/fbdev/starfive/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config FB_STARFIVE_HDMI_ADV7513

config FB_STARFIVE_HDMI_TDA998X
bool "HDMI TDA998X displayer support"
depends on DRM_FBDEV_EMULATION
help
Say Y here if you want to have support for TDA998X displayer

Expand Down
3 changes: 2 additions & 1 deletion drivers/video/fbdev/starfive/starfive_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ static int sf_fb_map_video_memory(struct sf_fb_data *sf_dev)
sf_dev->fb.screen_size = resource_size(&res_mem);
sf_dev->fb.fix.smem_start = res_mem.start;

sf_dev->fb.screen_base = devm_ioremap_resource(sf_dev->dev, &res_mem);
sf_dev->fb.screen_base = devm_ioremap(sf_dev->dev, res_mem.start,
resource_size(&res_mem));
if (IS_ERR(sf_dev->fb.screen_base))
return PTR_ERR(sf_dev->fb.screen_base);

Expand Down