From 0827a0b4f1e598943302346f2fb70f9a3ff1f747 Mon Sep 17 00:00:00 2001 From: Sergey Ryazanov Date: Wed, 7 Jun 2017 01:49:36 +0300 Subject: ath25: 4.9: fix GPIO compile issues Consider renaming the dev field to parent in the upstream. Signed-off-by: Sergey Ryazanov --- target/linux/ath25/patches-4.9/107-ar5312_gpio.patch | 2 +- target/linux/ath25/patches-4.9/108-ar2315_gpio.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ath25/patches-4.9') diff --git a/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch index f4426b52c5..ac729ee48e 100644 --- a/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch +++ b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch @@ -177,7 +177,7 @@ + if (IS_ERR(ar5312_mem)) + return PTR_ERR(ar5312_mem); + -+ ar5312_gpio_chip.dev = dev; ++ ar5312_gpio_chip.parent = dev; + ret = gpiochip_add(&ar5312_gpio_chip); + if (ret) { + dev_err(dev, "failed to add gpiochip\n"); diff --git a/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch index 6bb793d98c..cd9d8bcda8 100644 --- a/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch +++ b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch @@ -310,7 +310,7 @@ + if (IS_ERR(ar2315_mem)) + return PTR_ERR(ar2315_mem); + -+ ar2315_gpio_chip.dev = dev; ++ ar2315_gpio_chip.parent = dev; + ret = gpiochip_add(&ar2315_gpio_chip); + if (ret) { + dev_err(dev, "failed to add gpiochip\n"); -- cgit v1.2.3 ummaryrefslogtreecommitdiffstats
blob: b93ab8d536d2f0df3e973ea271b1c090dca04264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

TMP_DIR ?= $(TOPDIR)/tmp
ifeq ($(if $(TARGET_BUILD),,$(DUMP)),)
  -include $(TMP_DIR)/.host.mk
endif

export TAR FIND

ifneq ($(__host_inc),1)
__host_inc:=1
.PRECIOUS: $(TMP_DIR)/.host.mk
$(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
	@mkdir -p $(TMP_DIR)
	@( \
		HOST_OS=`uname`; \
		case "$$HOST_OS" in \
			Linux) HOST_ARCH=`uname -m`;; \
			*) HOST_ARCH=`uname -p`;; \
		esac; \
		GNU_HOST_NAME=`gcc -dumpmachine`; \
		[ -n "$$GNU_HOST_NAME" ] || \
			GNU_HOST_NAME=`$(SCRIPT_DIR)/config.guess`; \
		echo "HOST_OS:=$$HOST_OS" > $@; \
		echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
		echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
		TAR=`which gtar 2>/dev/null`; \
		[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which gnutar 2>/dev/null`; \
		[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \
		echo "TAR:=$$TAR" >> $@; \
		FIND=`which gfind 2>/dev/null`; \
		[ -n "$$FIND" -a -x "$$FIND" ] || FIND=`which find 2>/dev/null`; \
		echo "FIND:=$$FIND" >> $@; \
		echo "BASH:=$(shell which bash)" >> $@; \
		if $$FIND -L /tmp -maxdepth 0 >/dev/null 2>/dev/null; then \
			echo "FIND_L=$$FIND -L \$$(1)" >>$@; \
		else \
			echo "FIND_L=$$FIND \$$(1) -follow" >> $@; \
		fi; \
		if xargs --help 2>&1 | grep 'gnu.org' >/dev/null; then \
			echo 'XARGS:=xargs -r' >> $@; \
		else \
			echo 'XARGS:=xargs' >> $@; \
		fi; \
	)

endif