twsi.c (fdafd315ad0d0f28a11b9fb4476a9ab059c62b92) twsi.c (18250ec6c089c0c50cbd9fd87d78e03ff89916df)
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 803 unchanged lines hidden (view full) ---

812 &sc->debug, 0, "Set debug level (zero to disable)");
813
814 /* Attach the iicbus. */
815 if ((sc->iicbus = device_add_child(dev, "iicbus", -1)) == NULL) {
816 device_printf(dev, "could not allocate iicbus instance\n");
817 twsi_detach(dev);
818 return (ENXIO);
819 }
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 803 unchanged lines hidden (view full) ---

812 &sc->debug, 0, "Set debug level (zero to disable)");
813
814 /* Attach the iicbus. */
815 if ((sc->iicbus = device_add_child(dev, "iicbus", -1)) == NULL) {
816 device_printf(dev, "could not allocate iicbus instance\n");
817 twsi_detach(dev);
818 return (ENXIO);
819 }
820 bus_generic_attach(dev);
820 bus_attach_children(dev);
821
822 config_intrhook_oneshot(twsi_intr_start, dev);
823
824 return (0);
825}
826
827int
828twsi_detach(device_t dev)

--- 51 unchanged lines hidden ---
821
822 config_intrhook_oneshot(twsi_intr_start, dev);
823
824 return (0);
825}
826
827int
828twsi_detach(device_t dev)

--- 51 unchanged lines hidden ---