dev-spi.c (39ca476e3439bb135ff37ed1310469735ade06bf) | dev-spi.c (e5766aea5b9b7519654261c27b639f567b5415b4) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2009-2011 Florian Fainelli <florian@openwrt.org> 7 * Copyright (C) 2010 Tanguy Bouzeloc <tanguy.bouzeloc@efixo.com> 8 */ --- 73 unchanged lines hidden (view full) --- 82 .platform_data = &spi_pdata, 83 }, 84}; 85 86int __init bcm63xx_spi_register(void) 87{ 88 struct clk *periph_clk; 89 | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2009-2011 Florian Fainelli <florian@openwrt.org> 7 * Copyright (C) 2010 Tanguy Bouzeloc <tanguy.bouzeloc@efixo.com> 8 */ --- 73 unchanged lines hidden (view full) --- 82 .platform_data = &spi_pdata, 83 }, 84}; 85 86int __init bcm63xx_spi_register(void) 87{ 88 struct clk *periph_clk; 89 |
90 if (BCMCPU_IS_6345()) | 90 if (BCMCPU_IS_6328() || BCMCPU_IS_6345()) |
91 return -ENODEV; 92 93 periph_clk = clk_get(NULL, "periph"); 94 if (IS_ERR(periph_clk)) { 95 pr_err("unable to get periph clock\n"); 96 return -ENODEV; 97 } 98 --- 21 unchanged lines hidden --- | 91 return -ENODEV; 92 93 periph_clk = clk_get(NULL, "periph"); 94 if (IS_ERR(periph_clk)) { 95 pr_err("unable to get periph clock\n"); 96 return -ENODEV; 97 } 98 --- 21 unchanged lines hidden --- |