arm freescale: Remove unused variables.
This commit is contained in:
@@ -75,9 +75,6 @@ usbphy_detach(device_t dev)
|
|||||||
static int
|
static int
|
||||||
usbphy_attach(device_t dev)
|
usbphy_attach(device_t dev)
|
||||||
{
|
{
|
||||||
struct usbphy_softc *sc;
|
|
||||||
|
|
||||||
sc = device_get_softc(dev);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Turn on the phy clocks.
|
* Turn on the phy clocks.
|
||||||
|
|||||||
@@ -142,9 +142,6 @@ adc_probe(device_t dev)
|
|||||||
static void
|
static void
|
||||||
adc_intr(void *arg)
|
adc_intr(void *arg)
|
||||||
{
|
{
|
||||||
struct adc_softc *sc;
|
|
||||||
|
|
||||||
sc = arg;
|
|
||||||
|
|
||||||
/* Conversation complete */
|
/* Conversation complete */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,13 +74,10 @@ static struct resource_spec tcon_spec[] = {
|
|||||||
uint32_t
|
uint32_t
|
||||||
tcon_bypass(void)
|
tcon_bypass(void)
|
||||||
{
|
{
|
||||||
struct tcon_softc *sc;
|
|
||||||
|
|
||||||
if (tcon_sc == NULL)
|
if (tcon_sc == NULL)
|
||||||
return (1);
|
return (1);
|
||||||
|
|
||||||
sc = tcon_sc;
|
|
||||||
|
|
||||||
WRITE4(tcon_sc, TCON0_CTRL1, TCON_BYPASS);
|
WRITE4(tcon_sc, TCON0_CTRL1, TCON_BYPASS);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|||||||
@@ -339,10 +339,8 @@ vf_uart_bus_getsig(struct uart_softc *sc)
|
|||||||
static int
|
static int
|
||||||
vf_uart_bus_ioctl(struct uart_softc *sc, int request, intptr_t data)
|
vf_uart_bus_ioctl(struct uart_softc *sc, int request, intptr_t data)
|
||||||
{
|
{
|
||||||
struct uart_bas *bas;
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
bas = &sc->sc_bas;
|
|
||||||
error = 0;
|
error = 0;
|
||||||
uart_lock(sc->sc_hwmtx);
|
uart_lock(sc->sc_hwmtx);
|
||||||
switch (request) {
|
switch (request) {
|
||||||
@@ -369,7 +367,6 @@ vf_uart_bus_ipend(struct uart_softc *sc)
|
|||||||
int ipend;
|
int ipend;
|
||||||
uint32_t usr1, usr2;
|
uint32_t usr1, usr2;
|
||||||
int reg;
|
int reg;
|
||||||
int sfifo;
|
|
||||||
|
|
||||||
bas = &sc->sc_bas;
|
bas = &sc->sc_bas;
|
||||||
ipend = 0;
|
ipend = 0;
|
||||||
@@ -378,7 +375,7 @@ vf_uart_bus_ipend(struct uart_softc *sc)
|
|||||||
|
|
||||||
usr1 = uart_getreg(bas, UART_S1);
|
usr1 = uart_getreg(bas, UART_S1);
|
||||||
usr2 = uart_getreg(bas, UART_S2);
|
usr2 = uart_getreg(bas, UART_S2);
|
||||||
sfifo = uart_getreg(bas, UART_SFIFO);
|
(void)uart_getreg(bas, UART_SFIFO);
|
||||||
|
|
||||||
/* ack usr2 */
|
/* ack usr2 */
|
||||||
uart_setreg(bas, UART_S2, usr2);
|
uart_setreg(bas, UART_S2, usr2);
|
||||||
|
|||||||
Reference in New Issue
Block a user