mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
pinctrl: samsung: Use unsigned int for number of controller IO mem resources
Number of IO memory resources cannot be negative obviously and the driver depends silently on this (by iterating from 0 to nr_ext_resources+1). Make this requirement explicit. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
This commit is contained in:
parent
4460dc21cb
commit
52d0ed009c
@ -960,7 +960,7 @@ samsung_pinctrl_get_soc_data(struct samsung_pinctrl_drv_data *d,
|
||||
struct samsung_pin_bank *bank;
|
||||
struct resource *res;
|
||||
void __iomem *virt_base[SAMSUNG_PINCTRL_NUM_RESOURCES];
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
id = of_alias_get_id(node, "pinctrl");
|
||||
if (id < 0) {
|
||||
|
@ -231,7 +231,7 @@ struct samsung_retention_data {
|
||||
struct samsung_pin_ctrl {
|
||||
const struct samsung_pin_bank_data *pin_banks;
|
||||
u32 nr_banks;
|
||||
int nr_ext_resources;
|
||||
unsigned int nr_ext_resources;
|
||||
const struct samsung_retention_data *retention_data;
|
||||
|
||||
int (*eint_gpio_init)(struct samsung_pinctrl_drv_data *);
|
||||
|
Loading…
Reference in New Issue
Block a user