Skip to content
Snippets Groups Projects
Commit 76197b6a authored by Prasad Kummari's avatar Prasad Kummari Committed by Michal Simek
Browse files

xilinx: versal-net: fix no previous prototype for function warning.


Included the SPI header to resolve the no previous prototypes
for function. Removed unused mode variable.
sparse warnings
warning: no previous prototype for 'spi_get_env_dev'
[-Wmissing-prototypes]
warning: variable 'mode' set but not used
[-Wunused-but-set-variable]

Signed-off-by: default avatarPrasad Kummari <prasad.kummari@amd.com>
Link: https://lore.kernel.org/r/20240905115758.999936-1-prasad.kummari@amd.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent 94861689
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include <env_internal.h>
#include <log.h>
#include <malloc.h>
#include <spi.h>
#include <time.h>
#include <asm/cache.h>
#include <asm/global_data.h>
......@@ -196,7 +197,6 @@ static u8 versal_net_get_bootmode(void)
int spi_get_env_dev(void)
{
struct udevice *dev;
const char *mode = NULL;
int bootseq = -1;
switch (versal_net_get_bootmode()) {
......@@ -207,7 +207,6 @@ int spi_get_env_dev(void)
debug("QSPI driver for QSPI device is not present\n");
break;
}
mode = "xspi";
bootseq = dev_seq(dev);
break;
case QSPI_MODE_32BIT:
......@@ -217,7 +216,6 @@ int spi_get_env_dev(void)
debug("QSPI driver for QSPI device is not present\n");
break;
}
mode = "xspi";
bootseq = dev_seq(dev);
break;
case OSPI_MODE:
......@@ -227,7 +225,6 @@ int spi_get_env_dev(void)
debug("OSPI driver for OSPI device is not present\n");
break;
}
mode = "xspi";
bootseq = dev_seq(dev);
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment