diff options
Diffstat (limited to 'recipes/linux/linux-openmoko-2.6.32/0001-wm8753-fix-build-with-gcc-4.4.2-which-works-ok-with-.patch')
-rw-r--r-- | recipes/linux/linux-openmoko-2.6.32/0001-wm8753-fix-build-with-gcc-4.4.2-which-works-ok-with-.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/linux/linux-openmoko-2.6.32/0001-wm8753-fix-build-with-gcc-4.4.2-which-works-ok-with-.patch b/recipes/linux/linux-openmoko-2.6.32/0001-wm8753-fix-build-with-gcc-4.4.2-which-works-ok-with-.patch new file mode 100644 index 0000000000..c6b989f997 --- /dev/null +++ b/recipes/linux/linux-openmoko-2.6.32/0001-wm8753-fix-build-with-gcc-4.4.2-which-works-ok-with-.patch @@ -0,0 +1,27 @@ +From 63b619f9466dc36648d082dc4e4fad714a343d80 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 1/5] wm8753: fix build with gcc-4.4.2, which works ok with 4.1.2 + +--- + 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 d80d414..1e685b2 100644 +--- a/sound/soc/codecs/wm8753.c ++++ b/sound/soc/codecs/wm8753.c +@@ -709,7 +709,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.6.5.2 + |