mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
MTD: handle pci_name() being const
This changes the MTD core to handle pci_name() now returning a constant string. Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
89bcb05d9b
commit
eadcf0d704
3 changed files with 7 additions and 5 deletions
|
|
@ -189,7 +189,7 @@ typedef union {
|
|||
*/
|
||||
|
||||
struct map_info {
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned long size;
|
||||
resource_size_t phys;
|
||||
#define NO_XIP (-1UL)
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ struct mtd_info {
|
|||
u_int32_t oobavail; // Available OOB bytes per block
|
||||
|
||||
// Kernel-only stuff starts here.
|
||||
char *name;
|
||||
const char *name;
|
||||
int index;
|
||||
|
||||
/* ecc layout structure pointer - read only ! */
|
||||
|
|
|
|||
Loading…
Reference in a new issue