projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i2c: uniphier-f: replace debug() with dev_dbg()
[oweals/u-boot.git]
/
drivers
/
video
/
ati_radeon_fb.c
diff --git
a/drivers/video/ati_radeon_fb.c
b/drivers/video/ati_radeon_fb.c
index 618f5d93b6d1df89d090579a02973f317e34f8cf..5b6c42291cb0c482a29f0b1afd05fe436cc358b5 100644
(file)
--- a/
drivers/video/ati_radeon_fb.c
+++ b/
drivers/video/ati_radeon_fb.c
@@
-19,9
+19,10
@@
#include <common.h>
#include <command.h>
#include <common.h>
#include <command.h>
+#include <bios_emul.h>
#include <pci.h>
#include <asm/processor.h>
#include <pci.h>
#include <asm/processor.h>
-#include <
asm
/errno.h>
+#include <
linux
/errno.h>
#include <asm/io.h>
#include <malloc.h>
#include <video_fb.h>
#include <asm/io.h>
#include <malloc.h>
#include <video_fb.h>
@@
-544,7
+545,6
@@
void radeon_setmode_9200(int vesa_idx, int bpp)
}
#include "../bios_emulator/include/biosemu.h"
}
#include "../bios_emulator/include/biosemu.h"
-extern int BootVideoCardBIOS(pci_dev_t pcidev, BE_VGAInfo ** pVGAInfo, int cleanUp);
int radeon_probe(struct radeonfb_info *rinfo)
{
int radeon_probe(struct radeonfb_info *rinfo)
{
@@
-637,7
+637,8
@@
void *video_hw_init(void)
videomode = CONFIG_SYS_DEFAULT_VIDEO_MODE;
/* get video mode via environment */
videomode = CONFIG_SYS_DEFAULT_VIDEO_MODE;
/* get video mode via environment */
- if ((penv = getenv ("videomode")) != NULL) {
+ penv = env_get("videomode");
+ if (penv) {
/* deceide if it is a string */
if (penv[0] <= '9') {
videomode = (int) simple_strtoul (penv, NULL, 16);
/* deceide if it is a string */
if (penv[0] <= '9') {
videomode = (int) simple_strtoul (penv, NULL, 16);