sun_uflash.c (bf61c8840efe60fd8f91446860b63338fb424158) | sun_uflash.c (7c4bb4f8f8ad6d3cc338d59c00f674a571ae7ca6) |
---|---|
1/* sun_uflash.c - Driver for user-programmable flash on 2 * Sun Microsystems SME boardsets. 3 * 4 * This driver does NOT provide access to the OBP-flash for 5 * safety reasons-- use <linux>/drivers/sbus/char/flash.c instead. 6 * 7 * Copyright (c) 2001 Eric Brower (ebrower@usa.net) 8 */ --- 61 unchanged lines hidden (view full) --- 70 71 /* copy defaults and tweak parameters */ 72 memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); 73 74 up->map.size = resource_size(&op->resource[0]); 75 76 up->name = of_get_property(dp, "model", NULL); 77 if (up->name && 0 < strlen(up->name)) | 1/* sun_uflash.c - Driver for user-programmable flash on 2 * Sun Microsystems SME boardsets. 3 * 4 * This driver does NOT provide access to the OBP-flash for 5 * safety reasons-- use <linux>/drivers/sbus/char/flash.c instead. 6 * 7 * Copyright (c) 2001 Eric Brower (ebrower@usa.net) 8 */ --- 61 unchanged lines hidden (view full) --- 70 71 /* copy defaults and tweak parameters */ 72 memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); 73 74 up->map.size = resource_size(&op->resource[0]); 75 76 up->name = of_get_property(dp, "model", NULL); 77 if (up->name && 0 < strlen(up->name)) |
78 up->map.name = (char *)up->name; | 78 up->map.name = up->name; |
79 80 up->map.phys = op->resource[0].start; 81 82 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, 83 DRIVER_NAME); 84 if (!up->map.virt) { 85 printk(KERN_ERR PFX "Failed to map device.\n"); 86 kfree(up); --- 75 unchanged lines hidden --- | 79 80 up->map.phys = op->resource[0].start; 81 82 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, 83 DRIVER_NAME); 84 if (!up->map.virt) { 85 printk(KERN_ERR PFX "Failed to map device.\n"); 86 kfree(up); --- 75 unchanged lines hidden --- |