| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the flashrom project. | 2 * This file is part of the flashrom project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2000 Silicon Integrated System Corporation | 4 * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 * Copyright (C) 2004 Tyan Corp <yhlu@tyan.com> | 5 * Copyright (C) 2004 Tyan Corp <yhlu@tyan.com> |
| 6 * Copyright (C) 2005-2008 coresystems GmbH | 6 * Copyright (C) 2005-2008 coresystems GmbH |
| 7 * Copyright (C) 2008,2009,2010 Carl-Daniel Hailfinger | 7 * Copyright (C) 2008,2009,2010 Carl-Daniel Hailfinger |
| 8 * | 8 * |
| 9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
| 10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 } else if (set_wp_enable) { | 521 } else if (set_wp_enable) { |
| 522 if (flash->wp && flash->wp->enable) | 522 if (flash->wp && flash->wp->enable) |
| 523 rc = flash->wp->enable(flash); | 523 rc = flash->wp->enable(flash); |
| 524 } else if (get_size) { | 524 } else if (get_size) { |
| 525 printf("%d\n", flash->total_size * 1024); | 525 printf("%d\n", flash->total_size * 1024); |
| 526 rc = 0; | 526 rc = 0; |
| 527 } else { | 527 } else { |
| 528 rc = doit(flash, force, filename, read_it, write_it, erase_it, v
erify_it); | 528 rc = doit(flash, force, filename, read_it, write_it, erase_it, v
erify_it); |
| 529 } | 529 } |
| 530 | 530 |
| 531 programmer_shutdown(); |
| 531 return rc; | 532 return rc; |
| 532 } | 533 } |
| OLD | NEW |