Florian Fainelli
d6c25beba3
mdio-octeon: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:02 -08:00
Florian Fainelli
a77e929a24
mdio-gpio: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:02 -08:00
Florian Fainelli
9e6c643bb4
phy/fixed: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:02 -08:00
Florian Fainelli
3e617506c1
bcm63xx_enet: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:02 -08:00
Florian Fainelli
0869b3a456
ixp4xx-eth: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
5a05a8200a
davinci_emac: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
d1733f078b
cpmac: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
db8857bf5b
stmmac: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
09ef0789bb
smsc911x: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
859ad35e71
s6gmac: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
5278fb5470
sh-eth: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
d073a102a1
pxa168-eth: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:01 -08:00
Florian Fainelli
12322431d1
mv643xx-eth: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
d1b86507d8
lantiq_etop: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
391420f7b8
fec: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
63f678301f
dnet: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
98d5e57eaf
macb: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
446bbc4b5e
sb1250: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
f74299b6c1
au1000-eth: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
75432fd291
bfin_mac: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Florian Fainelli
fa84e7201c
ax88796: use an unique MDIO bus name.
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2012-01-10 16:35:00 -08:00
Ben Hutchings
e74a8f2edb
drivers/rtc/interface.c: fix alarm rollover when day or month is out-of-range
...
Commit f44f7f96a2
("RTC: Initialize kernel state from RTC") introduced a
potential infinite loop. If an alarm time contains a wildcard month and
an invalid day (> 31), or a wildcard year and an invalid month (>= 12),
the loop searching for the next matching date will never terminate. Treat
the invalid values as wildcards.
Fixes <http://bugs.debian.org/646429 >, <http://bugs.debian.org/653331 >
Reported-by: leo weppelman <leoweppelman@googlemail.com >
Reported-by: "P. van Gaans" <mailme667@yahoo.co.uk >
Signed-off-by: Ben Hutchings <ben@decadent.org.uk >
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com >
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: John Stultz <john.stultz@linaro.org >
Acked-by: Alessandro Zummo <a.zummo@towertech.it >
Cc: <stable@vger.kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Benoit Cousson
948170f894
drivers/rtc/rtc-twl.c: add DT support for RTC inside twl4030/twl6030
...
Add the DT support for the TI rtc-twl present in the twl4030 and twl6030
devices.
Signed-off-by: Benoit Cousson <b-cousson@ti.com >
Acked-by: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Lars-Peter Clausen
6c3fb55793
drivers/rtc/: remove redundant spi driver bus initialization
...
In ancient times it was necessary to manually initialize the bus field of
an spi_driver to spi_bus_type. These days this is done in
spi_driver_register(), so we can drop the manual assignment.
The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
struct spi_driver _driver = {
.driver = {
- .bus = &spi_bus_type,
},
};
// </smpl>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: John Stultz <john.stultz@linaro.org >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Cc: Grant Likely <grant.likely@secretlab.ca >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Axel Lin
681d0378a9
drivers/rtc/rtc-jz4740.c: make jz4740_rtc_driver static
...
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Axel Lin
a46481d7af
drivers/rtc/rtc-mc13xxx.c: make mc13xxx_rtc_idtable static
...
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Axel Lin
0c4eae6659
rtc: convert drivers/rtc/* to use module_platform_driver()
...
This patch converts the drivers in drivers/rtc/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Acked-by: Mike Frysinger <vapier@gentoo.org >
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Ben Dooks <ben@simtec.co.uk >
Cc: John Stultz <john.stultz@linaro.org >
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:53 -08:00
Mark Brown
5f85d20d04
drivers/rtc/rtc-wm831x.c: convert to devm_kzalloc()
...
Marginally less code and eliminate the possibility of memory leaks.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Mark Brown
2d65943e55
drivers/rtc/rtc-wm831x.c: remove unused period IRQ handler
...
Due to changes in the RTC core the period interrupt is now unused so
delete the code managing it.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Mark Godfrey
dda367ac06
rtc/ab8500: add calibration attribute to AB8500 RTC
...
The rtc_calibration attribute allows user-space to get and set the
AB8500's RtcCalibration register. The AB8500 will then use the value in
this register to compensate for RTC drift every 60 seconds.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Mark Godfrey <mark.godfrey@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:52 -08:00
Linus Walleij
012e52e15e
drivers/rtc/rtc-ab8500.c: change msleep() to usleep_range()
...
The resolution of msleep is related to HZ, so with HZ set to 100 any
msleep of less than 10ms will become ~10ms. This is not what we want.
Use the hrtimer-based usleep_range() and allow for some slack in the
non-critical path so we have more control of what is happening here.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Cc: Jonas Aaberg <jonas.aberg@stericsson.com >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Andrew Lynn
b62581e624
rtc/ab8500: set can_wake flag
...
Set can_wake flag so wakealarm property is visible in sysfs.
Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com >
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Robert Marklund
10d065e65b
rtc/ab8500: don't disable IRQ:s when suspending
...
We want this driver to be able to wake up the system.
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Yauhen Kharuzhy
c92182ee0b
drivers/rtc/rtc-mxc.c: make alarm work
...
Fix alarm IRQ handling, make the alarm one-shot. Cleanup black magick
with a validation of already validated time data.
Add ability to wake the system with alarm.
[akpm@linux-foundation.org: fix CONFIG_PM=n build]
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:52 -08:00
Yauhen Kharuzhy
7287be1d0a
drivers/rtc/rtc-mxc.c: fix setting time for MX1 SoC
...
There is no way to track year in the i.MX1 RTC: Days Counter register is
9-bit wide only. Attempt to save date after 1970-01-01 plus 512 days
causes endless loop in mxc_rtc_set_mmss(). Fix this by resetting year to
1970.
[akpm@linux-foundation.org: use conventional comment layout]
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:52 -08:00
Ondrej Zary
b43c1ea4d6
drivers/rtc/rtc-cmos.c: fix broken NVRAM bank 2 writing
...
Fix writing to NVRAM bank 2 in rtc-cmos driver. It never worked since its
introduction in 2.6.28 because of a typo.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org >
Cc: Alessandro Zummo <a.zummo@towertech.it >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:52 -08:00
Mark Brown
c957b614bd
leds: convert wm8350 driver to devm_kzalloc()
...
Saves a small amount of code and systematically eliminates leaks.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Mark Brown
1713cb9d60
leds: convert wm831x status driver to devm_kzalloc()
...
Saves a small amount of code and systematically eliminates leaks.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Axel Lin
3b080945aa
drivers/leds/leds-mc13783.c: fix off-by-one for checking num_leds
...
The LED id begins from 0. Thus the maximum number of leds should be
MC13783_LED_MAX + 1.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Philippe Retornaz <philippe.retornaz@epfl.ch >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
NeilBrown
a6d511e515
leds: add driver for TCA6507 LED controller
...
TI's TCA6507 is the LED driver in the GTA04 Openmoko motherboard. The
driver provides full support for brightness levels and hardware blinking.
This driver can drive each of 7 outputs as an LED or a GPIO output,
and provides hardware-assist blinking.
[akpm@linux-foundation.org: fix __mod_i2c_device_table alias]
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: NeilBrown <neilb@suse.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:49 -08:00
Axel Lin
b96a573f4c
drivers/leds/leds-netxbig.c: use gpio_request_one()
...
Use gpio_request_one() instead of multiple gpiolib calls. This also
simplifies error handling a bit.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Simon Guinot <sguinot@lacie.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Axel Lin
95dafd4753
drivers/leds/leds-bd2802.c: use gpio_request_one()
...
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Kim Kyuwon <q1.kim@samsung.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Axel Lin
1980bcfa6b
drivers/leds/leds-lp5523.c: remove unneeded forward declaration
...
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Samu Onkalo <samu.p.onkalo@nokia.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Axel Lin
19b955768b
leds: convert leds-dac124s085 to module_spi_driver
...
Factor out some boilerplate code for spi driver registration into
module_spi_driver.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Haojian Zhuang <hzhuang1@marvell.com >
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org >
Cc: Mike Rapoport <mike@compulab.co.il >
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:49 -08:00
Axel Lin
09a0d183ef
leds: convert led i2c drivers to module_i2c_driver
...
Factor out some boilerplate code for i2c driver registration
into module_i2c_driver.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Cc: Haojian Zhuang <hzhuang1@marvell.com >
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org >
Cc: Mike Rapoport <mike@compulab.co.il >
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00
Axel Lin
892a8843fb
leds: convert led platform drivers to module_platform_driver
...
Factor out some boilerplate code for platform driver registration into
module_platform_driver.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Haojian Zhuang <hzhuang1@marvell.com > [led-88pm860x.c]
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org >
Cc: Mike Rapoport <mike@compulab.co.il >
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00
Mark Brown
e2c17bc6f7
backlight: convert pwm_bl to dev_pm_ops
...
Should be no functional changes, mainly a reorganisation to support future
work.
[akpm@linux-foundation.org: fix CONFIG_PM=n build]
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:48 -08:00
Mark Brown
48e78e8cc8
backlight: convert platform_lcd to devm_kzalloc()
...
Saves some error handling code and eliminates a class of leaks.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00
Jingoo Han
66655760bf
backlight: use kstrtoul()
...
The usage of simple_strtoul() or strict_strtoul() is not preferred. Thus,
kstrtoul should be used.
This patch also fixes checkpatch error as follows:
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00
Jingoo Han
1cfc6fee34
drivers/video/backlight/ep93xx_bl.c: remove duplicated header include
...
module.h is included twice.
Signed-off-by: Jingoo Han <jg1.han@samsung.com >
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Cc: Ryan Mallon <rmallon@gmail.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-01-10 16:30:48 -08:00