From: Thierry Reding Date: Fri, 25 Oct 2013 09:29:21 +0000 (+0200) Subject: Merge remote-tracking branch 'sh/sh-latest' X-Git-Tag: next-20131025~95 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84afd914192cd0aa11073b472041ee5668034026;p=karo-tx-linux.git Merge remote-tracking branch 'sh/sh-latest' Conflicts: arch/sh/kernel/cpu/sh2a/Makefile drivers/tty/serial/sh-sci.c include/linux/serial_sci.h --- 84afd914192cd0aa11073b472041ee5668034026 diff --cc arch/sh/kernel/cpu/sh2a/Makefile index 990195d98456,130984caa601..92f0da4c86a7 --- a/arch/sh/kernel/cpu/sh2a/Makefile +++ b/arch/sh/kernel/cpu/sh2a/Makefile @@@ -21,4 -21,5 +21,5 @@@ pinmux-$(CONFIG_CPU_SUBTYPE_SH7203) := pinmux-$(CONFIG_CPU_SUBTYPE_SH7264) := pinmux-sh7264.o pinmux-$(CONFIG_CPU_SUBTYPE_SH7269) := pinmux-sh7269.o -obj-$(CONFIG_GENERIC_GPIO) += $(pinmux-y) +obj-$(CONFIG_GPIOLIB) += $(pinmux-y) + obj-$(CONFIG_HAVE_HW_BREAKPOINT) += ubc.o diff --cc drivers/tty/serial/sh-sci.c index 537750261aaa,e3847cc2d995..d262c1f4af03 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@@ -2481,9 -2502,20 +2588,20 @@@ static int sci_probe(struct platform_de if (is_early_platform_device(dev)) return sci_probe_earlyprintk(dev); + if (dev->dev.of_node) + p = sci_parse_dt(dev, &dev_id); + else - p = dev->dev.platform_data; ++ p = dev_get_platdata(&dev->dev); + + if (!p) { + dev_err(&dev->dev, "no setup data supplied\n"); + return -EINVAL; + } + + sp = &sci_ports[dev_id]; platform_set_drvdata(dev, sp); - ret = sci_probe_single(dev, dev->id, p, sp); + ret = sci_probe_single(dev, dev_id, p, sp); if (ret) return ret; diff --cc include/linux/serial_sci.h index 50fe651da965,857eec4336e3..3dbdf7e53dcc --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h @@@ -16,7 -18,8 +18,9 @@@ enum SCBRR_ALGO_3, /* (((clk * 2) + 16 * bps) / (16 * bps) - 1) */ SCBRR_ALGO_4, /* (((clk * 2) + 16 * bps) / (32 * bps) - 1) */ SCBRR_ALGO_5, /* (((clk * 1000 / 32) / bps) - 1) */ + SCBRR_ALGO_6, /* HSCIF variable sample rate algorithm */ + + SCBRR_NR_ALGOS, }; #define SCSCR_TIE (1 << 7)