Revision 87ecb68b hw/i2c.c

b/hw/i2c.c
7 7
 * This code is licenced under the LGPL.
8 8
 */
9 9

  
10
#include "vl.h"
10
#include "hw.h"
11
#include "i2c.h"
11 12

  
12 13
struct i2c_bus
13 14
{
......
30 31
    i2c_slave *dev;
31 32

  
32 33
    if (size < sizeof(i2c_slave))
33
        cpu_abort(cpu_single_env, "I2C struct too small");
34
        hw_error("I2C struct too small");
34 35

  
35 36
    dev = (i2c_slave *)qemu_mallocz(size);
36 37
    dev->address = address;

Also available in: Unified diff