Deleted Added
full compact
ti_gpio.c (266152) ti_gpio.c (278782)
1/*-
2 * Copyright (c) 2011
3 * Ben Gray <ben.r.gray@gmail.com>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

35 *
36 * Beware the OMA datasheet(s) lists GPIO banks 1-6, whereas I've used 0-5 here
37 * in the code.
38 *
39 *
40 */
41
42#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011
3 * Ben Gray <ben.r.gray@gmail.com>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

35 *
36 * Beware the OMA datasheet(s) lists GPIO banks 1-6, whereas I've used 0-5 here
37 * in the code.
38 *
39 *
40 */
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: stable/10/sys/arm/ti/ti_gpio.c 266152 2014-05-15 16:11:06Z ian $");
43__FBSDID("$FreeBSD: stable/10/sys/arm/ti/ti_gpio.c 278782 2015-02-14 20:37:33Z loos $");
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/bus.h>
48
49#include <sys/kernel.h>
50#include <sys/module.h>
51#include <sys/rman.h>

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

817 bus_release_resources(dev, ti_gpio_mem_spec,
818 sc->sc_mem_res);
819 return (err);
820 }
821 }
822 }
823
824 /* Finish of the probe call */
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/bus.h>
48
49#include <sys/kernel.h>
50#include <sys/module.h>
51#include <sys/rman.h>

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

817 bus_release_resources(dev, ti_gpio_mem_spec,
818 sc->sc_mem_res);
819 return (err);
820 }
821 }
822 }
823
824 /* Finish of the probe call */
825 device_add_child(dev, "gpioc", device_get_unit(dev));
826 device_add_child(dev, "gpiobus", device_get_unit(dev));
825 device_add_child(dev, "gpioc", -1);
826 device_add_child(dev, "gpiobus", -1);
827
828 return (bus_generic_attach(dev));
829}
830
831/**
832 * ti_gpio_detach - detach function for the driver
833 * @dev: scm device handle
834 *

--- 72 unchanged lines hidden ---
827
828 return (bus_generic_attach(dev));
829}
830
831/**
832 * ti_gpio_detach - detach function for the driver
833 * @dev: scm device handle
834 *

--- 72 unchanged lines hidden ---