summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/imx
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-03-06 06:44:47 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-03-06 06:44:47 +0000
commit8c6a6213cd38dbcb00be0645147fb57750e7240a (patch)
treef2a038e6d8c9a2b9284cc4cc5af86d3f3d037b9e /sys/arch/armv7/imx
parent547a7cc106f5bc211211cf80e10dae6f66a85d33 (diff)
Remove unused unit number from softc.
Diffstat (limited to 'sys/arch/armv7/imx')
-rw-r--r--sys/arch/armv7/imx/imxiic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/armv7/imx/imxiic.c b/sys/arch/armv7/imx/imxiic.c
index 8e46c1ac043..fb12045e0f3 100644
--- a/sys/arch/armv7/imx/imxiic.c
+++ b/sys/arch/armv7/imx/imxiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxiic.c,v 1.12 2016/12/28 22:45:24 kettenis Exp $ */
+/* $OpenBSD: imxiic.c,v 1.13 2017/03/06 06:44:46 kettenis Exp $ */
/*
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
*
@@ -54,7 +54,6 @@ struct imxiic_softc {
bus_size_t sc_ios;
void *sc_ih;
int sc_node;
- int unit;
struct rwlock sc_buslock;
struct i2c_controller i2c_tag;
@@ -120,7 +119,6 @@ imxiic_attach(struct device *parent, struct device *self, void *aux)
sc->sc_iot = faa->fa_iot;
sc->sc_ios = faa->fa_reg[0].size;
sc->sc_node = faa->fa_node;
- sc->unit = (faa->fa_reg[0].addr & 0xc000) >> 14;
if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
faa->fa_reg[0].size, 0, &sc->sc_ioh))
panic("imxiic_attach: bus_space_map failed!");