diff options
| author | Michal Simek <[email protected]> | 2016-11-30 12:12:31 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2016-12-02 14:37:26 +0100 |
| commit | c002e39ae669403baf21a7e04473447387f6302d (patch) | |
| tree | a8cfcc57ca70b5651ee234c6da240685ee432942 /common | |
| parent | 545a284711eb767ccb67ee6746b64bb330fa9303 (diff) | |
scsi: Change scsi_scan() to be able to return value
With DM_SCSI this function will return more than one return value to
cover errors.
Suggested-by: Simon Glass <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/scsi.c b/common/scsi.c index ba656160581..839b30b9bb8 100644 --- a/common/scsi.c +++ b/common/scsi.c @@ -524,7 +524,7 @@ removable: * (re)-scan the scsi bus and reports scsi device info * to the user if mode = 1 */ -void scsi_scan(int mode) +int scsi_scan(int mode) { unsigned char i, lun; int ret; @@ -558,6 +558,7 @@ void scsi_scan(int mode) #ifndef CONFIG_SPL_BUILD setenv_ulong("scsidevs", scsi_max_devs); #endif + return 0; } #ifdef CONFIG_BLK |
