mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fd_probe: only define unit on x86, other platforms don't use this code
Sponsored by: Netflix
This commit is contained in:
parent
9a2e6ca6ef
commit
05d3c5fd18
1 changed files with 3 additions and 1 deletions
|
|
@ -1887,7 +1887,9 @@ fdc_print_child(device_t me, device_t child)
|
|||
static int
|
||||
fd_probe(device_t dev)
|
||||
{
|
||||
#if defined(__i386__) || defined(__amd64__)
|
||||
int unit;
|
||||
#endif
|
||||
int i;
|
||||
u_int st0, st3;
|
||||
struct fd_data *fd;
|
||||
|
|
@ -1903,7 +1905,6 @@ fd_probe(device_t dev)
|
|||
fd->dev = dev;
|
||||
fd->fdc = fdc;
|
||||
fd->fdsu = fdsu;
|
||||
unit = device_get_unit(dev);
|
||||
|
||||
/* Auto-probe if fdinfo is present, but always allow override. */
|
||||
type = flags & FD_TYPEMASK;
|
||||
|
|
@ -1917,6 +1918,7 @@ fd_probe(device_t dev)
|
|||
}
|
||||
|
||||
#if defined(__i386__) || defined(__amd64__)
|
||||
unit = device_get_unit(dev);
|
||||
if (fd->type == FDT_NONE && (unit == 0 || unit == 1)) {
|
||||
/* Look up what the BIOS thinks we have. */
|
||||
if (unit == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue