| @@ -50,27 +50,27 @@ | | | @@ -50,27 +50,27 @@ |
50 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 50 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
51 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 51 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
52 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 52 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
53 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 53 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
54 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 54 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
55 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 55 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
56 | * SUCH DAMAGE. | | 56 | * SUCH DAMAGE. |
57 | */ | | 57 | */ |
58 | | | 58 | |
59 | #include <sys/cdefs.h> | | 59 | #include <sys/cdefs.h> |
60 | #if 0 | | 60 | #if 0 |
61 | __FBSDID("$FreeBSD: head/sys/dev/ismt/ismt.c 266474 2014-05-20 19:55:06Z jimharris $"); | | 61 | __FBSDID("$FreeBSD: head/sys/dev/ismt/ismt.c 266474 2014-05-20 19:55:06Z jimharris $"); |
62 | #endif | | 62 | #endif |
63 | __KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.7.10.1 2021/03/24 14:21:08 thorpej Exp $"); | | 63 | __KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.7.10.2 2021/04/03 01:52:16 thorpej Exp $"); |
64 | | | 64 | |
65 | #include <sys/param.h> | | 65 | #include <sys/param.h> |
66 | #include <sys/systm.h> | | 66 | #include <sys/systm.h> |
67 | #include <sys/device.h> | | 67 | #include <sys/device.h> |
68 | #include <sys/errno.h> | | 68 | #include <sys/errno.h> |
69 | #include <sys/kernel.h> | | 69 | #include <sys/kernel.h> |
70 | #include <sys/module.h> | | 70 | #include <sys/module.h> |
71 | #include <sys/proc.h> | | 71 | #include <sys/proc.h> |
72 | | | 72 | |
73 | #include <sys/bus.h> | | 73 | #include <sys/bus.h> |
74 | | | 74 | |
75 | #include <dev/pci/pcidevs.h> | | 75 | #include <dev/pci/pcidevs.h> |
76 | #include <dev/pci/pcireg.h> | | 76 | #include <dev/pci/pcireg.h> |
| @@ -800,27 +800,26 @@ ismt_rescan(device_t self, const char *i | | | @@ -800,27 +800,26 @@ ismt_rescan(device_t self, const char *i |
800 | sc->sc_i2c_tag.ic_cookie = sc; | | 800 | sc->sc_i2c_tag.ic_cookie = sc; |
801 | sc->sc_i2c_tag.ic_exec = ismt_i2c_exec; | | 801 | sc->sc_i2c_tag.ic_exec = ismt_i2c_exec; |
802 | | | 802 | |
803 | memset(&iba, 0, sizeof(iba)); | | 803 | memset(&iba, 0, sizeof(iba)); |
804 | iba.iba_tag = &sc->sc_i2c_tag; | | 804 | iba.iba_tag = &sc->sc_i2c_tag; |
805 | sc->smbdev = config_found(self, &iba, iicbus_print, CFARG_EOL); | | 805 | sc->smbdev = config_found(self, &iba, iicbus_print, CFARG_EOL); |
806 | | | 806 | |
807 | return 0; | | 807 | return 0; |
808 | } | | 808 | } |
809 | | | 809 | |
810 | static void | | 810 | static void |
811 | ismt_config_interrupts(device_t self) | | 811 | ismt_config_interrupts(device_t self) |
812 | { | | 812 | { |
813 | int flags = 0; | | | |
814 | | | 813 | |
815 | ismt_rescan(self, NULL, NULL); | | 814 | ismt_rescan(self, NULL, NULL); |
816 | } | | 815 | } |
817 | | | 816 | |
818 | static void | | 817 | static void |
819 | ismt_chdet(device_t self, device_t child) | | 818 | ismt_chdet(device_t self, device_t child) |
820 | { | | 819 | { |
821 | struct ismt_softc *sc = device_private(self); | | 820 | struct ismt_softc *sc = device_private(self); |
822 | | | 821 | |
823 | if (sc->smbdev == child) | | 822 | if (sc->smbdev == child) |
824 | sc->smbdev = NULL; | | 823 | sc->smbdev = NULL; |
825 | | | 824 | |
826 | } | | 825 | } |