tegra20_das.c (8df6bf1c58f397f8383b99a6003bbc4f721f080f) | tegra20_das.c (4652a0d0c48324e1227e2b2500d17045840e2fb3) |
---|---|
1/* 2 * tegra20_das.c - Tegra20 DAS driver 3 * 4 * Author: Stephen Warren <swarren@nvidia.com> 5 * Copyright (C) 2010 - NVIDIA, Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 117 unchanged lines hidden (view full) --- 126 .reg_stride = 4, 127 .val_bits = 32, 128 .max_register = LAST_REG(DAC_INPUT_DATA_CLK_SEL), 129 .writeable_reg = tegra20_das_wr_rd_reg, 130 .readable_reg = tegra20_das_wr_rd_reg, 131 .cache_type = REGCACHE_RBTREE, 132}; 133 | 1/* 2 * tegra20_das.c - Tegra20 DAS driver 3 * 4 * Author: Stephen Warren <swarren@nvidia.com> 5 * Copyright (C) 2010 - NVIDIA, Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 117 unchanged lines hidden (view full) --- 126 .reg_stride = 4, 127 .val_bits = 32, 128 .max_register = LAST_REG(DAC_INPUT_DATA_CLK_SEL), 129 .writeable_reg = tegra20_das_wr_rd_reg, 130 .readable_reg = tegra20_das_wr_rd_reg, 131 .cache_type = REGCACHE_RBTREE, 132}; 133 |
134static int __devinit tegra20_das_probe(struct platform_device *pdev) | 134static int tegra20_das_probe(struct platform_device *pdev) |
135{ 136 struct resource *res, *region; 137 void __iomem *regs; 138 int ret = 0; 139 140 if (das) 141 return -ENODEV; 142 --- 52 unchanged lines hidden (view full) --- 195 196 return 0; 197 198err: 199 das = NULL; 200 return ret; 201} 202 | 135{ 136 struct resource *res, *region; 137 void __iomem *regs; 138 int ret = 0; 139 140 if (das) 141 return -ENODEV; 142 --- 52 unchanged lines hidden (view full) --- 195 196 return 0; 197 198err: 199 das = NULL; 200 return ret; 201} 202 |
203static int __devexit tegra20_das_remove(struct platform_device *pdev) | 203static int tegra20_das_remove(struct platform_device *pdev) |
204{ 205 if (!das) 206 return -ENODEV; 207 208 das = NULL; 209 210 return 0; 211} 212 213static const struct of_device_id tegra20_das_of_match[] = { 214 { .compatible = "nvidia,tegra20-das", }, 215 {}, 216}; 217 218static struct platform_driver tegra20_das_driver = { 219 .probe = tegra20_das_probe, | 204{ 205 if (!das) 206 return -ENODEV; 207 208 das = NULL; 209 210 return 0; 211} 212 213static const struct of_device_id tegra20_das_of_match[] = { 214 { .compatible = "nvidia,tegra20-das", }, 215 {}, 216}; 217 218static struct platform_driver tegra20_das_driver = { 219 .probe = tegra20_das_probe, |
220 .remove = __devexit_p(tegra20_das_remove), | 220 .remove = tegra20_das_remove, |
221 .driver = { 222 .name = DRV_NAME, 223 .owner = THIS_MODULE, 224 .of_match_table = tegra20_das_of_match, 225 }, 226}; 227module_platform_driver(tegra20_das_driver); 228 229MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); 230MODULE_DESCRIPTION("Tegra20 DAS driver"); 231MODULE_LICENSE("GPL"); 232MODULE_ALIAS("platform:" DRV_NAME); 233MODULE_DEVICE_TABLE(of, tegra20_das_of_match); | 221 .driver = { 222 .name = DRV_NAME, 223 .owner = THIS_MODULE, 224 .of_match_table = tegra20_das_of_match, 225 }, 226}; 227module_platform_driver(tegra20_das_driver); 228 229MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); 230MODULE_DESCRIPTION("Tegra20 DAS driver"); 231MODULE_LICENSE("GPL"); 232MODULE_ALIAS("platform:" DRV_NAME); 233MODULE_DEVICE_TABLE(of, tegra20_das_of_match); |