|
@@ -1932,8 +1932,7 @@ static int sm501fb_probe(struct platform_device *pdev)
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
/* allocate our framebuffers */
|
|
/* allocate our framebuffers */
|
|
-
|
|
|
|
- info = kzalloc(sizeof(struct sm501fb_info), GFP_KERNEL);
|
|
|
|
|
|
+ info = kzalloc(sizeof(*info), GFP_KERNEL);
|
|
if (!info) {
|
|
if (!info) {
|
|
dev_err(dev, "failed to allocate state\n");
|
|
dev_err(dev, "failed to allocate state\n");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|