Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide

Pull IDE fixes from David Miller:
"A missing of_node_put() and a small cleanup"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
ide: Change to use DEFINE_SHOW_ATTRIBUTE macro
ide: pmac: add of_node_put()

+3 -13
+2 -13
drivers/ide/ide-proc.c
··· 614 614 return 0; 615 615 } 616 616 617 - static int ide_drivers_open(struct inode *inode, struct file *file) 618 - { 619 - return single_open(file, &ide_drivers_show, NULL); 620 - } 621 - 622 - static const struct file_operations ide_drivers_operations = { 623 - .owner = THIS_MODULE, 624 - .open = ide_drivers_open, 625 - .read = seq_read, 626 - .llseek = seq_lseek, 627 - .release = single_release, 628 - }; 617 + DEFINE_SHOW_ATTRIBUTE(ide_drivers); 629 618 630 619 void proc_ide_create(void) 631 620 { ··· 623 634 if (!proc_ide_root) 624 635 return; 625 636 626 - proc_create("drivers", 0, proc_ide_root, &ide_drivers_operations); 637 + proc_create("drivers", 0, proc_ide_root, &ide_drivers_fops); 627 638 } 628 639 629 640 void proc_ide_destroy(void)
+1
drivers/ide/pmac.c
··· 920 920 struct device_node *root = of_find_node_by_path("/"); 921 921 const char *model = of_get_property(root, "model", NULL); 922 922 923 + of_node_put(root); 923 924 /* Get cable type from device-tree. */ 924 925 if (cable && !strncmp(cable, "80-", 3)) { 925 926 /* Some drives fail to detect 80c cable in PowerBook */