watchdog: booke_wdt: add __ro_after_init to booke_wdt_info
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 24 Dec 2016 16:07:32 +0000 (21:37 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
commit8d97005e01445921b429e92d7c425a86f76050ab
treed8097aa24041ab7d5827dde52806e8c66455c26e
parent027d89d96b6833f37091d858b9dcf92cd9b19aa7
watchdog: booke_wdt: add __ro_after_init to booke_wdt_info

The object booke_wdt_info of watchdog_info structure is not
modified after getting initialized by booke_wdt_init. Apart from getting
referenced in init it is also stored in the info field of watchdog_device
structure which is of type const struct watchdog_info *info. So, it
becomes read only after init and therefore add __ro_after_init to it's
declaration.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/booke_wdt.c