gpio-octeon.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | gpio-octeon.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
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) 2011, 2012 Cavium Inc. 7 */ 8 --- 94 unchanged lines hidden (view full) --- 103 err = -ENXIO; 104 goto out; 105 } 106 gpio->register_base = (u64)devm_ioremap(&pdev->dev, res_mem->start, 107 resource_size(res_mem)); 108 109 pdev->dev.platform_data = chip; 110 chip->label = "octeon-gpio"; | 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) 2011, 2012 Cavium Inc. 7 */ 8 --- 94 unchanged lines hidden (view full) --- 103 err = -ENXIO; 104 goto out; 105 } 106 gpio->register_base = (u64)devm_ioremap(&pdev->dev, res_mem->start, 107 resource_size(res_mem)); 108 109 pdev->dev.platform_data = chip; 110 chip->label = "octeon-gpio"; |
111 chip->dev = &pdev->dev; | 111 chip->parent = &pdev->dev; |
112 chip->owner = THIS_MODULE; 113 chip->base = 0; 114 chip->can_sleep = false; 115 chip->ngpio = 20; 116 chip->direction_input = octeon_gpio_dir_in; 117 chip->get = octeon_gpio_get; 118 chip->direction_output = octeon_gpio_dir_out; 119 chip->set = octeon_gpio_set; --- 38 unchanged lines hidden --- | 112 chip->owner = THIS_MODULE; 113 chip->base = 0; 114 chip->can_sleep = false; 115 chip->ngpio = 20; 116 chip->direction_input = octeon_gpio_dir_in; 117 chip->get = octeon_gpio_get; 118 chip->direction_output = octeon_gpio_dir_out; 119 chip->set = octeon_gpio_set; --- 38 unchanged lines hidden --- |