gpio-xgene.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | gpio-xgene.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
1/* 2 * AppliedMicro X-Gene SoC GPIO Driver 3 * 4 * Copyright (c) 2014, Applied Micro Circuits Corporation 5 * Author: Feng Kan <fkan@apm.com>. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 174 unchanged lines hidden (view full) --- 183 if (!gpio->base) { 184 err = -ENOMEM; 185 goto err; 186 } 187 188 gpio->chip.ngpio = XGENE_MAX_GPIOS; 189 190 spin_lock_init(&gpio->lock); | 1/* 2 * AppliedMicro X-Gene SoC GPIO Driver 3 * 4 * Copyright (c) 2014, Applied Micro Circuits Corporation 5 * Author: Feng Kan <fkan@apm.com>. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 174 unchanged lines hidden (view full) --- 183 if (!gpio->base) { 184 err = -ENOMEM; 185 goto err; 186 } 187 188 gpio->chip.ngpio = XGENE_MAX_GPIOS; 189 190 spin_lock_init(&gpio->lock); |
191 gpio->chip.dev = &pdev->dev; | 191 gpio->chip.parent = &pdev->dev; |
192 gpio->chip.direction_input = xgene_gpio_dir_in; 193 gpio->chip.direction_output = xgene_gpio_dir_out; 194 gpio->chip.get = xgene_gpio_get; 195 gpio->chip.set = xgene_gpio_set; 196 gpio->chip.label = dev_name(&pdev->dev); 197 gpio->chip.base = -1; 198 199 platform_set_drvdata(pdev, gpio); --- 44 unchanged lines hidden --- | 192 gpio->chip.direction_input = xgene_gpio_dir_in; 193 gpio->chip.direction_output = xgene_gpio_dir_out; 194 gpio->chip.get = xgene_gpio_get; 195 gpio->chip.set = xgene_gpio_set; 196 gpio->chip.label = dev_name(&pdev->dev); 197 gpio->chip.base = -1; 198 199 platform_set_drvdata(pdev, gpio); --- 44 unchanged lines hidden --- |