Ignore:
Timestamp:
Aug 2, 2000, 9:08:44 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0e08ff00
Parents:
409a221
Message:

Patch from Eric Norum <eric@…> to add "attaching" argument
to driver attach routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68360/network/network.c

    r409a221 r3393f6dd  
    943943 */
    944944int
    945 rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
     945rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching)
    946946{
    947947        struct scc_softc *sc;
     
    951951        char *unitName;
    952952
     953        /*
     954         * Make sure we're really being attached
     955         */
     956        if (!attaching) {
     957                printf ("SCC1 driver can not be detached.\n");
     958                return 0;
     959        }
     960               
    953961        /*
    954962         * Parse driver name
     
    10501058        ether_ifattach (ifp);
    10511059        return 1;
    1052 };
     1060}
Note: See TracChangeset for help on using the changeset viewer.