Date: Fri, 6 Dec 2013 17:49:34 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259035 - head/sys/dev/gpio Message-ID: <201312061749.rB6HnYAr060517@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loos Date: Fri Dec 6 17:49:34 2013 New Revision: 259035 URL: http://svnweb.freebsd.org/changeset/base/259035 Log: Remove unnecessary includes and an unused softc variable. While here apply two minor style(9) fixes. Approved by: adrian (mentor) Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c ============================================================================== --- head/sys/dev/gpio/gpioiic.c Fri Dec 6 17:45:14 2013 (r259034) +++ head/sys/dev/gpio/gpioiic.c Fri Dec 6 17:49:34 2013 (r259035) @@ -30,15 +30,10 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> -#include <sys/bio.h> #include <sys/bus.h> #include <sys/conf.h> #include <sys/kernel.h> -#include <sys/kthread.h> -#include <sys/lock.h> -#include <sys/malloc.h> #include <sys/module.h> -#include <sys/mutex.h> #include <sys/gpio.h> #include "gpiobus_if.h" @@ -55,7 +50,6 @@ struct gpioiic_softc { device_t sc_dev; device_t sc_busdev; - struct cdev *sc_leddev; int scl_pin; int sda_pin; }; @@ -78,6 +72,7 @@ gpioiic_probe(device_t dev) { device_set_desc(dev, "GPIO I2C bit-banging driver"); + return (0); } @@ -139,7 +134,7 @@ gpioiic_callback(device_t dev, int index error = EINVAL; } - return(error); + return (error); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312061749.rB6HnYAr060517>