lmb: move MAX_LMB_REGIONS value in Kconfig
Move MAX_LMB_REGIONS value in Kconfig, the max number of the regions in lmb library. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:

committed by
Tom Rini

parent
00fd8dad4d
commit
4fa0150d6c
@@ -12,8 +12,6 @@
|
||||
* Copyright (C) 2001 Peter Bergner, IBM Corp.
|
||||
*/
|
||||
|
||||
#define MAX_LMB_REGIONS 8
|
||||
|
||||
struct lmb_property {
|
||||
phys_addr_t base;
|
||||
phys_size_t size;
|
||||
@@ -22,7 +20,7 @@ struct lmb_property {
|
||||
struct lmb_region {
|
||||
unsigned long cnt;
|
||||
unsigned long max;
|
||||
struct lmb_property region[MAX_LMB_REGIONS+1];
|
||||
struct lmb_property region[CONFIG_LMB_MAX_REGIONS + 1];
|
||||
};
|
||||
|
||||
struct lmb {
|
||||
|
Reference in New Issue
Block a user