diff options
Diffstat (limited to 'arch/mips/pci/ops-tx4927.c')
| -rw-r--r-- | arch/mips/pci/ops-tx4927.c | 23 | 
1 files changed, 13 insertions, 10 deletions
diff --git a/arch/mips/pci/ops-tx4927.c b/arch/mips/pci/ops-tx4927.c index a1e7e6d80c8..0e046d82e4e 100644 --- a/arch/mips/pci/ops-tx4927.c +++ b/arch/mips/pci/ops-tx4927.c @@ -2,16 +2,16 @@   * Define the pci_ops for the PCIC on Toshiba TX4927, TX4938, etc.   *   * Based on linux/arch/mips/pci/ops-tx4938.c, - *          linux/arch/mips/pci/fixup-rbtx4938.c, - *          linux/arch/mips/txx9/rbtx4938/setup.c, + *	    linux/arch/mips/pci/fixup-rbtx4938.c, + *	    linux/arch/mips/txx9/rbtx4938/setup.c,   *	    and RBTX49xx patch from CELF patch archive.   *   * 2003-2005 (c) MontaVista Software, Inc.   * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)   * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007   * - * This program is free software; you can redistribute  it and/or modify it - * under  the terms of  the GNU General  Public License as published by the + * This program is free software; you can redistribute	it and/or modify it + * under  the terms of	the GNU General	 Public License as published by the   * Free Software Foundation;  either version 2 of the  License, or (at your   * option) any later version.   */ @@ -191,28 +191,31 @@ static struct {  	u8 trdyto;  	u8 retryto;  	u16 gbwc; -} tx4927_pci_opts __devinitdata = { +} tx4927_pci_opts = {  	.trdyto = 0,  	.retryto = 0,  	.gbwc = 0xfe0,	/* 4064 GBUSCLK for CCFG.GTOT=0b11 */  }; -char *__devinit tx4927_pcibios_setup(char *str) +char *tx4927_pcibios_setup(char *str)  {  	unsigned long val;  	if (!strncmp(str, "trdyto=", 7)) { -		if (strict_strtoul(str + 7, 0, &val) == 0) +		u8 val = 0; +		if (kstrtou8(str + 7, 0, &val) == 0)  			tx4927_pci_opts.trdyto = val;  		return NULL;  	}  	if (!strncmp(str, "retryto=", 8)) { -		if (strict_strtoul(str + 8, 0, &val) == 0) +		u8 val = 0; +		if (kstrtou8(str + 8, 0, &val) == 0)  			tx4927_pci_opts.retryto = val;  		return NULL;  	}  	if (!strncmp(str, "gbwc=", 5)) { -		if (strict_strtoul(str + 5, 0, &val) == 0) +		u16 val; +		if (kstrtou16(str + 5, 0, &val) == 0)  			tx4927_pci_opts.gbwc = val;  		return NULL;  	} @@ -495,7 +498,7 @@ irqreturn_t tx4927_pcierr_interrupt(int irq, void *dev_id)  }  #ifdef CONFIG_TOSHIBA_FPCIB0 -static void __init tx4927_quirk_slc90e66_bridge(struct pci_dev *dev) +static void tx4927_quirk_slc90e66_bridge(struct pci_dev *dev)  {  	struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(dev->bus);  | 
