diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-01-06 09:49:04 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-01-10 09:15:38 +0100 |
commit | 16a1f2e538452cfff7ab7e518ab21feabaf0ddd2 (patch) | |
tree | b740e9c86177eec36ae6e8038f65902b3b12c821 /recipes/linux/linux-2.6.37/shr.patch | |
parent | 9ef31e4aa678966165af743ebae8ba2bbf5d32ac (diff) | |
download | openembedded-16a1f2e538452cfff7ab7e518ab21feabaf0ddd2.tar.gz |
linux-2.6.37: add om-gta02 support
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/linux/linux-2.6.37/shr.patch')
-rw-r--r-- | recipes/linux/linux-2.6.37/shr.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.37/shr.patch b/recipes/linux/linux-2.6.37/shr.patch new file mode 100644 index 0000000000..7400d31d2e --- /dev/null +++ b/recipes/linux/linux-2.6.37/shr.patch @@ -0,0 +1,28 @@ +From ba03d027f8a6ae3eb6d6805a2d27fce422e7adad Mon Sep 17 00:00:00 2001 +From: Martin Jansa <Martin.Jansa@gmail.com> +Date: Sat, 7 Nov 2009 20:33:06 +0100 +Subject: [PATCH] wm8753: fix build with gcc-4.4.2, which works ok with 4.1.2 + +Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> +--- + sound/soc/codecs/wm8753.c | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c +index 28ee2e6..d5b4a40 100644 +--- a/sound/soc/codecs/wm8753.c ++++ b/sound/soc/codecs/wm8753.c +@@ -680,7 +680,9 @@ static void pll_factors(struct _pll_div *pll_div, unsigned int target, + Nmod = target % source; + Kpart = FIXED_PLL_SIZE * (long long)Nmod; + +- do_div(Kpart, source); ++ // with this, gcc-4.4.2 emits the reference to uldivmod, but then optimizes it out ++ //do_div(Kpart, source); ++ __do_div_asm(Kpart, source); + + K = Kpart & 0xFFFFFFFF; + +-- +1.7.4.rc1 + |