]> git.karo-electronics.de Git - linux-beck.git/commit
gpio/samsung: only register available gpio banks
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 10 Oct 2011 10:55:58 +0000 (19:55 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 12 Oct 2011 11:52:47 +0000 (20:52 +0900)
commit8a8ab2e64e09b56dc1324fd2f7da12346166cad1
tree6821d51036c57062ce279c73541afd03f83883a9
parentce19de02937772286e5d1f065d3143ec3abce200
gpio/samsung: only register available gpio banks

Only register gpio banks provided by SoC instead of the maximum possible
to lessen confusion, get rid of a warning from gpiolib and stop it from
eating into the extra gpios for configs with S3C24XX_GPIO_EXTRA != 0.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/gpio/gpio-samsung.c