projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: ks8851: Checkpatch cleanup
[oweals/u-boot.git]
/
cmd
/
reiser.c
diff --git
a/cmd/reiser.c
b/cmd/reiser.c
index e10c7b9ebad76b69f3fb2f4a661306684e5c27b2..3db926f806487114ad5c499e94a87009dadfc5ee 100644
(file)
--- a/
cmd/reiser.c
+++ b/
cmd/reiser.c
@@
-1,9
+1,8
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2003 - 2004
* Sysgo Real-Time Solutions, AG <www.elinos.com>
* Pavel Bartusek <pba@sysgo.com>
/*
* (C) Copyright 2003 - 2004
* Sysgo Real-Time Solutions, AG <www.elinos.com>
* Pavel Bartusek <pba@sysgo.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
/*
*/
/*
@@
-12,6
+11,7
@@
#include <common.h>
#include <config.h>
#include <command.h>
#include <common.h>
#include <config.h>
#include <command.h>
+#include <env.h>
#include <image.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
#include <image.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
@@
-30,12
+30,12
@@
#define PRINTF(fmt,args...)
#endif
#define PRINTF(fmt,args...)
#endif
-int do_reiserls
(cmd_tbl_t *cmdtp, int flag, int argc, char *
const argv[])
+int do_reiserls
(struct cmd_tbl *cmdtp, int flag, int argc, char *
const argv[])
{
char *filename = "/";
int dev, part;
struct blk_desc *dev_desc = NULL;
{
char *filename = "/";
int dev, part;
struct blk_desc *dev_desc = NULL;
-
disk_partition_t
info;
+
struct disk_partition
info;
if (argc < 3)
return CMD_RET_USAGE;
if (argc < 3)
return CMD_RET_USAGE;
@@
-76,12
+76,12
@@
U_BOOT_CMD(
/******************************************************************************
* Reiserfs boot command intepreter. Derived from diskboot
*/
/******************************************************************************
* Reiserfs boot command intepreter. Derived from diskboot
*/
-int do_reiserload
(cmd_tbl_t *cmdtp, int flag, int argc, char *
const argv[])
+int do_reiserload
(struct cmd_tbl *cmdtp, int flag, int argc, char *
const argv[])
{
char *filename = NULL;
int dev, part;
ulong addr = 0, filelen;
{
char *filename = NULL;
int dev, part;
ulong addr = 0, filelen;
-
disk_partition_t
info;
+
struct disk_partition
info;
struct blk_desc *dev_desc = NULL;
unsigned long count;
char *addr_str;
struct blk_desc *dev_desc = NULL;
unsigned long count;
char *addr_str;
@@
-154,7
+154,7
@@
int do_reiserload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
/* Loading ok, update default load address */
}
/* Loading ok, update default load address */
- load_addr = addr;
+
image_
load_addr = addr;
printf ("\n%ld bytes read\n", filelen);
env_set_hex("filesize", filelen);
printf ("\n%ld bytes read\n", filelen);
env_set_hex("filesize", filelen);