diff options
| author | Olof Johansson <olof@lixom.net> | 2012-09-29 13:07:34 -0700 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-09-29 13:07:34 -0700 | 
| commit | ad932bb6b549722a561fb31ac2fa50dcbcb3e36b (patch) | |
| tree | 66cde27bd288e011a6e4cff87d342666399a1266 /drivers/tty/rocket.c | |
| parent | 5698bd757d55b1bb87edd1a9744ab09c142abfc2 (diff) | |
| parent | 9cd68fa707cf6372f33eb51a5719dd7626efe5f6 (diff) | |
| download | olio-linux-3.10-ad932bb6b549722a561fb31ac2fa50dcbcb3e36b.tar.xz olio-linux-3.10-ad932bb6b549722a561fb31ac2fa50dcbcb3e36b.zip  | |
Merge tag 'omap-devel-late-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into late/soc
These changes take us a step closer to merging the common clock
framework for omap but unfortunately these patches were not
ready for merging earlier. See also the notes below on the
dependencies these patches have, they are based on a merge
of sereral branches already merged.
From Paul Walmsley <paul@pwsan.com>:
OMAP patches intended for the 3.7 merge window:
- Runtime PM conversions for the GPMC and RNG IP blocks
- Preparation patches for the OMAP common clock framework conversion
- clkdev alias additions required by other drivers
- Performance Monitoring Unit (PMU) support for OMAP2, 3, and non-4430 OMAP4
- OMAP hwmod code and data improvements
- Preparation patches for the IOMMU runtime PM conversion
- Preparation patches for OMAP4 full-chip retention support
Based on a merge of v3.6-rc6, the omap-cleanup-b-for-3.7 tag
(7852ec0536ca39cefffc6301dc77f8ae55592926),the cleanup-fixes-for-v3.7
tag (de6ca33a96a6bf61fcb91d3d399703e19ead9d1e), and the
omap-devel-am33xx-for-v3.7 tag
(11964f53eb4d9ce59a058be9999d9cfcb1ced878), due to dependencies.
* tag 'omap-devel-late-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (281 commits)
  ARM: OMAP4460/4470: PMU: Enable PMU for OMAP4460/70
  ARM: OMAP2+: PMU: Add runtime PM support
  ARM: OMAP4430: PMU: prepare to create PMU device via HWMOD
  ARM: OMAP2+: PMU: Convert OMAP2/3 devices to use HWMOD
  ARM: OMAP3: hwmod data: Add debugss HWMOD data
  ARM: OMAP2+: clockdomain/hwmod: add workaround for EMU clockdomain idle problems
  ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP
  hwrng: OMAP: remove SoC restrictions from driver registration
  ARM: OMAP: split OMAP1, OMAP2+ RNG device registration
  hwrng: OMAP: convert to use runtime PM
  hwrng: OMAP: store per-device data in per-device variables, not file statics
  ARM: OMAP2xxx: hwmod/CM: add RNG integration data
  ARM: OMAP2+: gpmc: minimal driver support
  ARM: OMAP2+: gpmc: Adapt to HWMOD
  ARM: OMAP2/3: hwmod data: add gpmc
  ARM: OMAP4: hwmod data: add mmu hwmod for ipu and dsp
  ARM: OMAP3: hwmod data: add mmu data for iva and isp
  ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected
  ARM: OMAP4: hwmod data: add missing HWMOD_NO_IDLEST flags to some PRCM IP blocks
  ARM: OMAP4: hwmod data: make *phy_48m* as the main_clk of ocp2scp
  ...
Diffstat (limited to 'drivers/tty/rocket.c')
| -rw-r--r-- | drivers/tty/rocket.c | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index 777d5f9cf6c..9700d34b20a 100644 --- a/drivers/tty/rocket.c +++ b/drivers/tty/rocket.c @@ -704,8 +704,8 @@ static void init_r_port(int board, int aiop, int chan, struct pci_dev *pci_dev)  	spin_lock_init(&info->slock);  	mutex_init(&info->write_mtx);  	rp_table[line] = info; -	tty_register_device(rocket_driver, line, pci_dev ? &pci_dev->dev : -			NULL); +	tty_port_register_device(&info->port, rocket_driver, line, +			pci_dev ? &pci_dev->dev : NULL);  }  /* @@ -720,7 +720,7 @@ static void configure_r_port(struct tty_struct *tty, struct r_port *info,  	unsigned rocketMode;  	int bits, baud, divisor;  	CHANNEL_t *cp; -	struct ktermios *t = tty->termios; +	struct ktermios *t = &tty->termios;  	cp = &info->channel;  	cflag = t->c_cflag; @@ -978,7 +978,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)  			tty->alt_speed = 460800;  		configure_r_port(tty, info, NULL); -		if (tty->termios->c_cflag & CBAUD) { +		if (tty->termios.c_cflag & CBAUD) {  			sSetDTR(cp);  			sSetRTS(cp);  		} @@ -1089,35 +1089,35 @@ static void rp_set_termios(struct tty_struct *tty,  	if (rocket_paranoia_check(info, "rp_set_termios"))  		return; -	cflag = tty->termios->c_cflag; +	cflag = tty->termios.c_cflag;  	/*  	 * This driver doesn't support CS5 or CS6  	 */  	if (((cflag & CSIZE) == CS5) || ((cflag & CSIZE) == CS6)) -		tty->termios->c_cflag = +		tty->termios.c_cflag =  		    ((cflag & ~CSIZE) | (old_termios->c_cflag & CSIZE));  	/* Or CMSPAR */ -	tty->termios->c_cflag &= ~CMSPAR; +	tty->termios.c_cflag &= ~CMSPAR;  	configure_r_port(tty, info, old_termios);  	cp = &info->channel;  	/* Handle transition to B0 status */ -	if ((old_termios->c_cflag & CBAUD) && !(tty->termios->c_cflag & CBAUD)) { +	if ((old_termios->c_cflag & CBAUD) && !(tty->termios.c_cflag & CBAUD)) {  		sClrDTR(cp);  		sClrRTS(cp);  	}  	/* Handle transition away from B0 status */ -	if (!(old_termios->c_cflag & CBAUD) && (tty->termios->c_cflag & CBAUD)) { -		if (!tty->hw_stopped || !(tty->termios->c_cflag & CRTSCTS)) +	if (!(old_termios->c_cflag & CBAUD) && (tty->termios.c_cflag & CBAUD)) { +		if (!tty->hw_stopped || !(tty->termios.c_cflag & CRTSCTS))  			sSetRTS(cp);  		sSetDTR(cp);  	} -	if ((old_termios->c_cflag & CRTSCTS) && !(tty->termios->c_cflag & CRTSCTS)) { +	if ((old_termios->c_cflag & CRTSCTS) && !(tty->termios.c_cflag & CRTSCTS)) {  		tty->hw_stopped = 0;  		rp_start(tty);  	}  |