diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-12-24 17:07:32 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-02-24 23:00:23 +0100 |
commit | 8d97005e01445921b429e92d7c425a86f76050ab (patch) | |
tree | d8097aa24041ab7d5827dde52806e8c66455c26e /drivers/watchdog/rn5t618_wdt.c | |
parent | watchdog: sa11x0/pxa: fix error path of driver initialization (diff) | |
download | linux-8d97005e01445921b429e92d7c425a86f76050ab.tar.xz linux-8d97005e01445921b429e92d7c425a86f76050ab.zip |
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>
Diffstat (limited to 'drivers/watchdog/rn5t618_wdt.c')
0 files changed, 0 insertions, 0 deletions