forked from Imagelibrary/rtems
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/tsmac/tsmac.c: Remove unused vars. Let rtems_tsmac_driver_attach return 1.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* shared/tsmac/tsmac.c: Remove unused vars.
|
||||||
|
Let rtems_tsmac_driver_attach return 1.
|
||||||
* shared/console/console.c: Use int as return type of
|
* shared/console/console.c: Use int as return type of
|
||||||
BSP_uart_polled_read.
|
BSP_uart_polled_read.
|
||||||
|
|
||||||
|
|||||||
@@ -567,8 +567,6 @@ void tsmac_init(void *arg)
|
|||||||
|
|
||||||
void tsmac_stop(struct ifnet *ifp)
|
void tsmac_stop(struct ifnet *ifp)
|
||||||
{
|
{
|
||||||
struct tsmac_softc *tsmac = ifp->if_softc;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mask tsmac interrupts
|
* Mask tsmac interrupts
|
||||||
*/
|
*/
|
||||||
@@ -595,9 +593,6 @@ void tsmac_start(struct ifnet *ifp)
|
|||||||
|
|
||||||
void tsmac_stats(struct tsmac_softc *tsmac)
|
void tsmac_stats(struct tsmac_softc *tsmac)
|
||||||
{
|
{
|
||||||
uint32_t data;
|
|
||||||
int stat;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update counters from TSMAC MIB counters
|
* Update counters from TSMAC MIB counters
|
||||||
*/
|
*/
|
||||||
@@ -791,6 +786,8 @@ int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config, int attachin
|
|||||||
|
|
||||||
if_attach(ifp);
|
if_attach(ifp);
|
||||||
ether_ifattach(ifp);
|
ether_ifattach(ifp);
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_isr tsmac_interrupt_handler(rtems_vector_number vector)
|
rtems_isr tsmac_interrupt_handler(rtems_vector_number vector)
|
||||||
|
|||||||
Reference in New Issue
Block a user