| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* ffb.c: Creator/Elite3D frame buffer driver |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net) |
|---|
| .. | .. |
|---|
| 43 | 44 | * Frame buffer operations |
|---|
| 44 | 45 | */ |
|---|
| 45 | 46 | |
|---|
| 46 | | -static struct fb_ops ffb_ops = { |
|---|
| 47 | +static const struct fb_ops ffb_ops = { |
|---|
| 47 | 48 | .owner = THIS_MODULE, |
|---|
| 48 | 49 | .fb_setcolreg = ffb_setcolreg, |
|---|
| 49 | 50 | .fb_blank = ffb_blank, |
|---|
| .. | .. |
|---|
| 944 | 945 | |
|---|
| 945 | 946 | info->var.accel_flags = FB_ACCELF_TEXT; |
|---|
| 946 | 947 | |
|---|
| 947 | | - if (!strcmp(dp->name, "SUNW,afb")) |
|---|
| 948 | + if (of_node_name_eq(dp, "SUNW,afb")) |
|---|
| 948 | 949 | par->flags |= FFB_FLAG_AFB; |
|---|
| 949 | 950 | |
|---|
| 950 | 951 | par->board_type = of_getintprop_default(dp, "board_type", 0); |
|---|