Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
c4e0e686
Commit
c4e0e686
authored
Aug 09, 2005
by
Wolfgang Denk
Browse files
Make new "mtdparts" code build with older compilers
Patch by Andrea Scian, 09 Aug 2005
parent
38ec37d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
c4e0e686
...
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.3:
======================================================================
* Make new "mtdparts" code build with older compilers
Patch by Andrea Scian, 09 Aug 2005
* Changed CONFIG_440_GX, CONFIG_440_EP and CONFIG_440_GR options to
CONFIG_44GX, CONFIG_440EP and CONFIG_440GR for a consistent design
with the 405 defines and the linux kernel defines.
...
...
common/cmd_jffs2.c
View file @
c4e0e686
...
...
@@ -1627,6 +1627,9 @@ int mtdparts_init(void)
DEBUGF
(
"
\n
---mtdparts_init---
\n
"
);
if
(
!
initialized
)
{
struct
mtdids
*
id
;
struct
part_info
*
part
;
initialized
=
1
;
current_dev
=
(
struct
mtd_device
*
)
malloc
(
sizeof
(
struct
mtd_device
)
+
...
...
@@ -1639,8 +1642,8 @@ int mtdparts_init(void)
memset
(
current_dev
,
0
,
sizeof
(
struct
mtd_device
)
+
sizeof
(
struct
part_info
)
+
sizeof
(
struct
mtdids
));
struct
mtdids
*
id
=
(
struct
mtdids
*
)(
current_dev
+
1
);
struct
part_info
*
part
=
(
struct
part_info
*
)(
id
+
1
);
id
=
(
struct
mtdids
*
)(
current_dev
+
1
);
part
=
(
struct
part_info
*
)(
id
+
1
);
/* id */
id
->
mtd_id
=
"single part"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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