Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

Pull m68knommu fix from Greg Ungerer:
"This contains only a single compilation fix for ColdFire m68k targets
that use local non-GPIOLIB support."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
m68k: define a local gpio_request_one() function

+20
+20
arch/m68k/include/asm/gpio.h
··· 86 86 return gpio < MCFGPIO_PIN_MAX ? 0 : __gpio_cansleep(gpio); 87 87 } 88 88 89 + static inline int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) 90 + { 91 + int err; 92 + 93 + err = gpio_request(gpio, label); 94 + if (err) 95 + return err; 96 + 97 + if (flags & GPIOF_DIR_IN) 98 + err = gpio_direction_input(gpio); 99 + else 100 + err = gpio_direction_output(gpio, 101 + (flags & GPIOF_INIT_HIGH) ? 1 : 0); 102 + 103 + if (err) 104 + gpio_free(gpio); 105 + 106 + return err; 107 + } 108 + 89 109 #endif