gpio: mvebu: Don't free chip label memory
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 14 Jan 2013 10:53:20 +0000 (11:53 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Jan 2013 11:27:08 +0000 (12:27 +0100)
commit11c0ceec073cb35a1bedfdece701351cfc1da5b7
treedd54d26489042319f79ab612dd9cf52c9ed8b028
parent6948ce588bd765352df6f6b866f2151e26489ef1
gpio: mvebu: Don't free chip label memory

The gpio_chip.label field is a const char * and assigned the value of a
call to dev_name(). Memory obtained from dev_name() should not be freed
by drivers.

Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c