Commit 545554e7c5bb93bfbf134f9f12889701c0aadf97

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent c5e7043ef7

drivers/gpio/ml_ioh_gpio.c needs slab.h

alpha allmodconfig:

  drivers/gpio/ml_ioh_gpio.c: In function 'ioh_gpio_probe':
  drivers/gpio/ml_ioh_gpio.c:205: error: implicit declaration of function 'kzalloc'
  drivers/gpio/ml_ioh_gpio.c:205: warning: assignment makes pointer from integer without a cast

also fix this:

  drivers/gpio/ml_ioh_gpio.c:145: warning: 'ioh_gpio_save_reg_conf' defined but not used
  drivers/gpio/ml_ioh_gpio.c:154: warning: 'ioh_gpio_restore_reg_conf' defined but not used

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/gpio/ml_ioh_gpio.c
... ... @@ -15,6 +15,7 @@
15 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16 16 */
17 17 #include <linux/kernel.h>
  18 +#include <linux/slab.h>
18 19 #include <linux/pci.h>
19 20 #include <linux/gpio.h>
20 21  
... ... @@ -138,6 +139,7 @@
138 139 return 0;
139 140 }
140 141  
  142 +#ifdef CONFIG_PM
141 143 /*
142 144 * Save register configuration and disable interrupts.
143 145 */
... ... @@ -157,6 +159,7 @@
157 159 /* to store contents of PM register */
158 160 iowrite32(chip->ioh_gpio_reg.pm_reg, &chip->reg->regs[chip->ch].pm);
159 161 }
  162 +#endif
160 163  
161 164 static void ioh_gpio_setup(struct ioh_gpio *chip, int num_port)
162 165 {