gpio-amd8111.c (85a3685852d9ac7d92be9d824533c915a4597fa4) | gpio-amd8111.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
1/* 2 * GPIO driver for AMD 8111 south bridges 3 * 4 * Copyright (c) 2012 Dmitry Eremin-Solenikov 5 * 6 * Based on the AMD RNG driver: 7 * Copyright 2005 (c) MontaVista Software, Inc. 8 * with the majority of the code coming from: --- 206 unchanged lines hidden (view full) --- 215 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); 216 if (!gp.pm) { 217 dev_err(&pdev->dev, "Couldn't map io port into io memory\n"); 218 release_region(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); 219 err = -ENOMEM; 220 goto out; 221 } 222 gp.pdev = pdev; | 1/* 2 * GPIO driver for AMD 8111 south bridges 3 * 4 * Copyright (c) 2012 Dmitry Eremin-Solenikov 5 * 6 * Based on the AMD RNG driver: 7 * Copyright 2005 (c) MontaVista Software, Inc. 8 * with the majority of the code coming from: --- 206 unchanged lines hidden (view full) --- 215 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); 216 if (!gp.pm) { 217 dev_err(&pdev->dev, "Couldn't map io port into io memory\n"); 218 release_region(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); 219 err = -ENOMEM; 220 goto out; 221 } 222 gp.pdev = pdev; |
223 gp.chip.dev = &pdev->dev; | 223 gp.chip.parent = &pdev->dev; |
224 225 spin_lock_init(&gp.lock); 226 227 printk(KERN_INFO "AMD-8111 GPIO detected\n"); 228 err = gpiochip_add(&gp.chip); 229 if (err) { 230 printk(KERN_ERR "GPIO registering failed (%d)\n", 231 err); --- 21 unchanged lines hidden --- | 224 225 spin_lock_init(&gp.lock); 226 227 printk(KERN_INFO "AMD-8111 GPIO detected\n"); 228 err = gpiochip_add(&gp.chip); 229 if (err) { 230 printk(KERN_ERR "GPIO registering failed (%d)\n", 231 err); --- 21 unchanged lines hidden --- |